Re: scheduling stored procedure

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: scheduling stored procedure
Дата
Msg-id 47E682EF.10608@iol.ie
обсуждение исходный текст
Ответ на scheduling stored procedure  ("Alain Roger" <raf.news@gmail.com>)
Список pgsql-general
On 23/03/2008 16:08, Alain Roger wrote:
> i was thinking to execute each hour a stored procedure which will check
> the time and date (of now) if it is greater than "registration request
> time" stored in this temporary table.
> if it is greater, so record will be deleted.
>
> does postgresql have such timer (something like "cron" under unix/linux) ?

Not built in. There's pgAgent which comes with pgAdmin, which ought to
do what you want, though I haven't used it myself.  Alternatively, you
can use cron to call psql with the -c option to execute the command you
need run.

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------

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

Предыдущее
От: "Alain Roger"
Дата:
Сообщение: scheduling stored procedure
Следующее
От: Ben
Дата:
Сообщение: Re: scheduling stored procedure