Re: How to watch for schema changes

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: How to watch for schema changes
Дата
Msg-id CAKFQuwbnuw69J+ddhBEkL8rH61S8ktmtrC2VOVRRC8+L=F6oWw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to watch for schema changes  (Igor Korot <ikorot01@gmail.com>)
Ответы Re: How to watch for schema changes
Re: How to watch for schema changes
Список pgsql-general
On Thu, Jul 12, 2018 at 8:50 AM, Igor Korot <ikorot01@gmail.com> wrote:
> No, see:
>
> https://www.postgresql.org/docs/10/static/sql-createtrigger.html
>
> AFTER trigger on views are STATEMENT level only.

But I do have access to the STATEMENT right?

​Yes, except nothing in the system actually attempts to directly target information_schema views with updates so there will never be a triggering event.​

A normal trigger will not work - which is a large reason why event triggers were implemented.

All of the alternative ideas (which I think was just log file parsing) you've decided are not viable for your need.  Thus you've seemingly eliminated all viable options and you now need to make a business decision.

David J.

p.s. Please remove the excess quoted material before hitting send.  At minimum anything after the last text that you write.​

В списке pgsql-general по дате отправления:

Предыдущее
От: Igor Korot
Дата:
Сообщение: Re: How to watch for schema changes
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How to watch for schema changes