pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Vivek <vivek.sonny.abraham@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Yearly Archival System Using PostgreSQL
Date: Fri, 15 Jul 2005 05:48:42 -0600
Message-ID: <20050715114842.GA29677@winnie.fuhr.org> (raw)
In-Reply-To: <1121333057.572963.320670@z14g2000cwz.googlegroups.com>
References: <1121333057.572963.320670@z14g2000cwz.googlegroups.com>

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/



view thread (2+ messages)

Message-ID: <20050715114842.GA29677@winnie.fuhr.org>
Permalink:  ../20050715114842.GA29677@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050715114842.GA29677@winnie.fuhr.org

 · 

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: mike@fuhr.org, vivek.sonny.abraham@gmail.com
  Subject: Re: Yearly Archival System Using PostgreSQL
  In-Reply-To: <20050715114842.GA29677@winnie.fuhr.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