Re: Can i write a time-trigger? - Mailing list pgsql-admin

From Jaume Sabater
Subject Re: Can i write a time-trigger?
Date
Msg-id 3786f7bb0911160617h56a59ffeqeeb5292aa8c94515@mail.gmail.com
Whole thread Raw
In response to Can i write a time-trigger?  (Shruthi A <shruthi.iisc@gmail.com>)
List 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 by date:

Previous
From: Shruthi A
Date:
Subject: Can i write a time-trigger?
Next
From: "Milen A. Radev"
Date:
Subject: Re: Can i write a time-trigger?