From: Justin Clift <justin@postgresql.org>
To: Ric Mañalac <ric.manalac@webphilippines.com>
Cc: pgsql-php@postgresql.org
Subject: Re: auto execute
Date: Fri, 11 Oct 2002 13:52:36 +1000
Message-ID: <3DA64B04.3C99179D@postgresql.org> (raw)
References: <3DA6432D.E253E07B@webphilippines.com>
Hi Ric,
You could use a cron job that executes a SQL statement to delete the old
records.
:-)
Regards and best wishes,
Justin Clift
Ric Mañalac wrote:
>
> hello,
>
> how can i make postgres to execute a query automatically during
> scheduled times?
>
> here's my situation. i store records on a table. these records should be
> removed 1 day after they were created.
>
> thanks.
>
> ric
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: justin@postgresql.org, ric.manalac@webphilippines.com
Subject: Re: auto execute
In-Reply-To: <3DA64B04.3C99179D@postgresql.org>
References: <3DA6432D.E253E07B@webphilippines.com> <3DA64B04.3C99179D@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox