pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: David Durst <ddurst@larubber.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Scheduling Events?
Date: Thu, 23 Jan 2003 22:06:55 -0700
Message-ID: <20030124050655.GA5612@cc.usu.edu> (raw)
In-Reply-To: <39409.216.86.192.34.1043367412.squirrel@www.la-rubber.com>
References: <39409.216.86.192.34.1043367412.squirrel@www.la-rubber.com>

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!



view thread (13+ messages)  latest in thread

Message-ID: <20030124050655.GA5612@cc.usu.edu>
Permalink:  ../20030124050655.GA5612@cc.usu.edu/
Also on:    postgresql.org/message-id/20030124050655.GA5612@cc.usu.edu

 · 

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: rmello@cc.usu.edu, ddurst@larubber.com
  Subject: Re: Scheduling Events?
  In-Reply-To: <20030124050655.GA5612@cc.usu.edu>

* 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