Re: Restrictions of channel arg of pg_notofy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Restrictions of channel arg of pg_notofy
Дата
Msg-id 28634.1556391117@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Restrictions of channel arg of pg_notofy  (Axel Rau <Axel.Rau@Chaos1.DE>)
Ответы Re: Restrictions of channel arg of pg_notofy
Список pgsql-sql
Axel Rau <Axel.Rau@Chaos1.DE> writes:
> Can the channel argument derived from the NEW pseudo arg of an INSERT TRIGGER?
> In the following trigger function, the
>     PERFORM pg_notify(fac);
> does not work (LISTEN in psql shows no notification).

That should work.

I think more likely what you're running into is that the NOTIFY won't
be delivered until end of transaction?

            regards, tom lane



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

Предыдущее
От: Axel Rau
Дата:
Сообщение: Restrictions of channel arg of pg_notofy
Следующее
От: Axel Rau
Дата:
Сообщение: Re: Restrictions of channel arg of pg_notofy