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

Re: Time-based trigger/procedure

From: "Rupinder(dot)Singh" <rupinder(dot)singh(at)enterprisedb(dot)com>
To: <andre(dot)beat(at)gmail(dot)com>,<pgsql-novice(at)postgresql(dot)org>
Subject: Re: Time-based trigger/procedure
Date: 2009-04-09 17:10:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
You can use pgagent or pgjobs.


-----Original Message-----
From: pgsql-novice-owner(at)postgresql(dot)org
[mailto:pgsql-novice-owner(at)postgresql(dot)org] On Behalf Of A. Kretschmer
Sent: Thursday, April 09, 2009 10:44 AM
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] Time-based trigger/procedure

In response to André Silva :
> I have a table that defines a programmed service that does something
> automatically every time interval (days, weeks, months) from a beginning
> to a ending date.
> How can I do this in postgresql? I have no access to the OS, so cron is
not an
> option.

To use the CRON or something similar is the way to do that. An other
dirty solution: use pg_sleep() to sleep, for instance, 1 minute, and
then detect the actual time and do the work.

> I'm sorry if my english is a bit confusing but it is not my main language.

The same for me...

Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA

In response to

pgsql-novice by date

Next:From: slapoDate: 2009-04-11 20:41:41
Subject: Function working in PostgreSQL 8.3.6 and not in 7.4.8
Previous:From: A. KretschmerDate: 2009-04-09 13:44:12
Subject: Re: auto vacuum question

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