pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: rhema@bhasin.co.in
Cc: pgsql-sql@postgresql.org
Subject: Re:
Date: Thu, 23 May 2002 10:24:22 -0500
Message-ID: <20020523152422.GB23741@wolff.to> (raw)
In-Reply-To: <20020523112720.23101.qmail@vmail1.ebhasin.com>
References: <20020523112720.23101.qmail@vmail1.ebhasin.com>

On Thu, May 23, 2002 at 11:27:20 +0000,
  rhema@bhasin.co.in wrote:
> hello,
> I need to know if there are any database event triggers
> in postgres like i want the trigger to run periodically(every day just like 
> crontab on unix), i need to delete the records in a table automatically 
> after a period of say 90 days. 
> 
> It is possible to create trigger on table before insert or update but if 
> there are no insertions or updations on the table, the record will remain 
> in the database.
> looking forward for the suggestions. 

Probably you just ran to run a cron job that deletes records older than
90 days in order to reclaim space. If it is important that transactions
not see this older data, than you want to write your selects so that older
records are not visible.



view thread (3+ messages)

Message-ID: <20020523152422.GB23741@wolff.to>
Permalink:  ../20020523152422.GB23741@wolff.to/
Also on:    postgresql.org/message-id/20020523152422.GB23741@wolff.to

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, rhema@bhasin.co.in
  Subject: Re:
  In-Reply-To: <20020523152422.GB23741@wolff.to>

* 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