Re: Can PostgreSQL notify a client that a trigger has

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Can PostgreSQL notify a client that a trigger has
Дата
Msg-id 1163033039.31124.481.camel@dogma.v10.wvs
обсуждение исходный текст
Ответ на Can PostgreSQL notify a client that a trigger has fired?  ("Bill" <postgresql@dbginc.com>)
Список pgsql-general
On Thu, 2006-11-09 at 00:39 +0000, Bill wrote:
> Does PostgreSQL have built in mechanism I can use to conditionally
> notify a client application that a trigger has fired? What I want is
> something along the line of the following pseudo code in a trigger.
>
> if <condition> then
>   raise client event
>

Yes, use LISTEN and NOTIFY. Probably it's easiest to write the trigger
in PL/pgSQL.

Regards,
    Jeff Davis


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

Предыдущее
От: "Bill"
Дата:
Сообщение: Can PostgreSQL notify a client that a trigger has fired?
Следующее
От: Jorge Godoy
Дата:
Сообщение: Re: Can PostgreSQL notify a client that a trigger has fired?