Re: elegant and effective way for running jobs inside a database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: elegant and effective way for running jobs inside a database
Дата
Msg-id 21910.1331074380@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: elegant and effective way for running jobs inside a database  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> I was thinking that the connection would be kept open but no query would
> be running.  Does this preclude reception of notifies?  I mean, you
> don't sleep via "SELECT pg_sleep()" but rather a select/poll in the
> daemon.

No.  If you're not inside a transaction, notifies will be sent
immediately.  They'd be pretty useless if they didn't work that way ---
the whole point is for clients not to have to busy-wait.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: elegant and effective way for running jobs inside a database
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: elegant and effective way for running jobs inside a database