Re: implementing an out-of-transaction trigger

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: implementing an out-of-transaction trigger
Дата
Msg-id 87sm9irhl8.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: implementing an out-of-transaction trigger  ("Iain" <iain@mst.co.jp>)
Список pgsql-sql
"Iain" <iain@mst.co.jp> writes:

> Though, as far as I can tell, there is no way to have the notify activate a
> pl/pgsql function directly. I'll still need to write a client program to
> create a session and actually do the listening, that is if I havn't missed
> anything else...

Right, presumably some sort of daemon that sits and waits for events. Much
like you would have with Oracle advanced queuing and such.

The big difference is that NOTIFY doesn't pass along any parameters. You will
need some way for your daemon to find any pending data it needs to process.
You might need some kind of queue table, or you might be able to get by
without one.

-- 
greg



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

Предыдущее
От: "Iain"
Дата:
Сообщение: Re: implementing an out-of-transaction trigger
Следующее
От: "Iain"
Дата:
Сообщение: Re: implementing an out-of-transaction trigger