scheduling stored procedure - Mailing list pgsql-general

From Alain Roger
Subject scheduling stored procedure
Date
Msg-id 75645bbb0803230908v4463c85p7cb015f165d7bee3@mail.gmail.com
Whole thread Raw
Responses Re: scheduling stored procedure  (Raymond O'Donnell <rod@iol.ie>)
Re: scheduling stored procedure  (Ben <bench@silentmedia.com>)
Re: scheduling stored procedure  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-general
Hi,

I have a temporary table in which i store all emails of users who want to receive a newsletter.
to avoid spamming and to limit the size of this table, i would like to delete all requests (records) which are older than 72 hours.

i was thinking to execute each hour a stored procedure which will check the time and date (of now) if it is greater than "registration request time" stored in this temporary table.
if it is greater, so record will be deleted.

does postgresql have such timer (something like "cron" under unix/linux) ?

thanks a lot,

--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: --enable-thread-safety bug
Next
From: Raymond O'Donnell
Date:
Subject: Re: scheduling stored procedure