Re: elegant and effective way for running jobs inside a database
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: elegant and effective way for running jobs inside a database |
| Дата | |
| Msg-id | 19302.1331154656@sss.pgh.pa.us обсуждение |
| Ответ на | Re: elegant and effective way for running jobs inside a database (Merlin Moncure <mmoncure@gmail.com>) |
| Список | pgsql-hackers |
Merlin Moncure <mmoncure@gmail.com> writes:
> sure, I get that, especially in regards to procedures. a server
> ticker though is a pretty small thing and it's fair to ask if maybe
> that should be exposed instead of (or perhaps in addition to) a job
> scheduling system.
I don't want to have a server-side ticker at all, especially not one
that exists only for a client that might or might not be there. We've
been doing what we can to reduce PG's idle-power consumption, which is
an important consideration for large-data-center applications. Adding a
new source of periodic wakeups is exactly the wrong direction to be
going.
There is no need for a ticker to drive a job system. It should be able
to respond to interrupts (if a NOTIFY comes in) and otherwise sleep
until the precalculated time that it next needs to launch a job.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера