Re: Yearly Archival System Using PostgreSQL - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: Yearly Archival System Using PostgreSQL
Date
Msg-id 20050715114842.GA29677@winnie.fuhr.org
Whole thread Raw
In response to Yearly Archival System Using PostgreSQL  ("Vivek" <vivek.sonny.abraham@gmail.com>)
List pgsql-sql
On Thu, Jul 14, 2005 at 02:24:17AM -0700, Vivek wrote:
> I am developing a database system using PostgreSQL in which I should be
> able to delete  redundant records once a year (Time specified by the
> user). THe redundant records should be inserted into the archive table
> which is part of the same database.
> 
> Is this possible in pgsql? Can I program a function in SQL or a trigger
> to fire when the computer switches on say Jan 1 of every year?

This is asked and answered from time to time; search the archives
for past discussion.  The usual answer is to use your operating
system's mechanism for scheduling period jobs, e.g., cron on Unix.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


pgsql-sql by date:

Previous
From: Kenneth Gonsalves
Date:
Subject: Re: difference between all RDBMSs
Next
From: Neil Dugan
Date:
Subject: Re: How to obtain the list of data table name only