pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedYearly Archival System Using PostgreSQL
2+ messages / 2 participants
[nested] [flat]
* Yearly Archival System Using PostgreSQL
@ 2005-07-14 09:24 Vivek <vivek.sonny.abraham@gmail.com>
2005-07-15 11:48 ` Re: Yearly Archival System Using PostgreSQL Michael Fuhr <mike@fuhr.org>
0 siblings, 1 reply; 2+ messages in thread
From: Vivek @ 2005-07-14 09:24 UTC (permalink / raw)
To: pgsql-sql
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?
Will be grateful if anybody could point me in the right direction.
Vivek
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Yearly Archival System Using PostgreSQL
2005-07-14 09:24 Yearly Archival System Using PostgreSQL Vivek <vivek.sonny.abraham@gmail.com>
@ 2005-07-15 11:48 ` Michael Fuhr <mike@fuhr.org>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Fuhr @ 2005-07-15 11:48 UTC (permalink / raw)
To: Vivek <vivek.sonny.abraham@gmail.com>; +Cc: 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/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-07-15 11:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 09:24 Yearly Archival System Using PostgreSQL Vivek <vivek.sonny.abraham@gmail.com>
2005-07-15 11:48 ` Michael Fuhr <mike@fuhr.org>
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