| From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> | 
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org | 
| Subject: | Re: Time-based trigger/procedure | 
| Date: | 2009-04-09 05:13:39 | 
| Message-ID: | 20090409051339.GA23290@a-kretschmer.de | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-novice | 
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 date
> 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
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net
| From | Date | Subject | |
|---|---|---|---|
| Next Message | A B | 2009-04-09 07:48:35 | Re: Is there a way to get just the number of seconds between two timestamps? | 
| Previous Message | André Silva | 2009-04-09 00:12:58 | Time-based trigger/procedure |