Skip site navigation (1) Skip section navigation (2)

Re: Can i write a time-trigger?

From: Jaume Sabater <jsabater(at)gmail(dot)com>
To: Shruthi A <shruthi(dot)iisc(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Can i write a time-trigger?
Date: 2009-11-16 14:17:47
Message-ID: 3786f7bb0911160617h56a59ffeqeeb5292aa8c94515@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-admin
On Mon, Nov 16, 2009 at 2:42 PM, Shruthi A <shruthi(dot)iisc(at)gmail(dot)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"

In response to

pgsql-admin by date

Next:From: Milen A. RadevDate: 2009-11-16 14:55:18
Subject: Re: Can i write a time-trigger?
Previous:From: Shruthi ADate: 2009-11-16 13:42:58
Subject: Can i write a time-trigger?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group