Re: Is there a way to be notified on the CREATE TABLE execution?

Поиск
Список
Период
Сортировка
От Francisco Olarte
Тема Re: Is there a way to be notified on the CREATE TABLE execution?
Дата
Msg-id CA+bJJbxGrvrmLr-Yx5mcAv9vcmXCcEmw1ZPRCc=Kv45AMu+qqQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Is there a way to be notified on the CREATE TABLE execution?  (Igor Korot <ikorot01@gmail.com>)
Ответы Re: Is there a way to be notified on the CREATE TABLE execution?
Re: Is there a way to be notified on the CREATE TABLE execution?
Список pgsql-general
On Wed, Jun 20, 2018 at 5:20 PM, Igor Korot <ikorot01@gmail.com> wrote:
>>  https://www.postgresql.org/docs/10/static/sql-createeventtrigger.html
>> Your scenario suggests you may wish to avail yourself of the Listen and
>> Notify commands as well.
>
> I did look at the Listen/Notify.
> Unfortunately the listening is done on the channel versus listening
> for the specific event.

Channels are cheap. You just listen on "whatever" and in the event
trigger you notify "whatever", payload is optional.

The event trigger is the one which takes care of filtering the event
and notifying selectively.

You can use a channel per event.

Francisco Olarte.


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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Is postorder tree traversal possible with recursive CTE's?
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Is there a way to be notified on the CREATE TABLE execution?