Re: Scheduling Events? - Mailing list pgsql-sql

From Roberto Mello
Subject Re: Scheduling Events?
Date
Msg-id 20030124050655.GA5612@cc.usu.edu
Whole thread Raw
In response to Scheduling Events?  ("David Durst" <ddurst@larubber.com>)
List pgsql-sql
On Thu, Jan 23, 2003 at 04:16:52PM -0800, David Durst wrote:
> Is there anyway to schedule DB Events based on time?
> So lets say I had a table w/ depreciation schedules in it,
> I would like the DB to apply the formula and make the entries on the END
> of every month.

1) Write a script that invokes psql with the appropriate queries
2) Schedule a cron job to the end of the month

Each tool doing its own small task well done.

-Roberto

-- 
+----|        Roberto Mello   -    http://www.brasileiro.net/  |------+
+       Computer Science Graduate Student, Utah State University      +
+       USU Free Software & GNU/Linux Club - http://fslc.usu.edu/     +
Junior, quit playing with your floppy!


pgsql-sql by date:

Previous
From: Roberto Mello
Date:
Subject: Re: SQL to list databases?
Next
From: Bhuvan A
Date:
Subject: Re: CAST from VARCHAR to INT