Re: Can i write a time-trigger?

Поиск
Список
Период
Сортировка
От Jaume Sabater
Тема Re: Can i write a time-trigger?
Дата
Msg-id 3786f7bb0911160617h56a59ffeqeeb5292aa8c94515@mail.gmail.com
обсуждение исходный текст
Ответ на Can i write a time-trigger?  (Shruthi A <shruthi.iisc@gmail.com>)
Список pgsql-admin
On Mon, Nov 16, 2009 at 2:42 PM, Shruthi A <shruthi.iisc@gmail.com> wrote:

> Is it possible in postgres to write a trigger that is fired at a certain
> pre-defined time?   ie I want to write a trigger that checks if the current
> time is one of a certain list of dates, and if yes, it should be executed.
> (I want it to execute only once on a matching date.)
>
> I'm using EnterpriseDB Postgres Plus 8.3

AFAIK, no, you cannot. But you can use a cron job that executes that
trigger via psql, same way you would do in the command console.

--
Jaume Sabater
http://linuxsilo.net/

"Ubi sapientas ibi libertas"

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

Предыдущее
От: Shruthi A
Дата:
Сообщение: Can i write a time-trigger?
Следующее
От: "Milen A. Radev"
Дата:
Сообщение: Re: Can i write a time-trigger?