Re:

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: rhema(at)bhasin(dot)co(dot)in
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re:
Date: 2002-05-23 15:24:22
Message-ID: 20020523152422.GB23741@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, May 23, 2002 at 11:27:20 +0000,
rhema(at)bhasin(dot)co(dot)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.

In response to

  • at 2002-05-23 11:27:20 from rhema

Browse pgsql-sql by date

  From Date Subject
Next Message Gabriel Dovalo Carril 2002-05-23 20:48:20 Re: Functions with dynamic queries
Previous Message Tom Lane 2002-05-23 14:49:13 Re: MacOS X Shared Buffers (SHMMAX)?