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

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: elegant and effective way for running jobs inside a database
Дата
Msg-id CAHyXU0w9nYm-PtDQKO3B4XUxU9ZvHeQdK3PDMLH_N31epE-Fbg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: elegant and effective way for running jobs inside a database  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: elegant and effective way for running jobs inside a database
Список pgsql-hackers
On Tue, Mar 6, 2012 at 4:01 PM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> Why do we need a ticker?  Just fetch the time of the task closest in the
> future, and sleep till that time or a notify arrives (meaning schedule
> change).

Because that can't be done in userland (at least, not without stored
procedures) since you'd have to keep an open running transaction while
sleeping.

merlin


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

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