Re: Scheduling Events?

From: Guy Fraser <guy(at)incentre(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Scheduling Events?
Date: 2003-01-24 18:46:02
Message-ID: 3E3189EA.7010105@incentre.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi

I would agree that cron is probably the best solution.

You could have cron perform a query that has a trigger and performs all the
tasks you need done. As well you could create a trigger on other queries that
would perform the other things as well, but make sure it isn't a heavily used
query but instead a query that is run hourly or daily. As a backup for cron
you could manualy or using "anacron" or somthing similar run the query cron
should run on a regular basis, but you should make sure your trigger keeps an
entry in your database letting the other queries know when the update is
started and when it has finished. Using this check ensures you don't get
"overlapping" updates, and can also give you a clue to how much time the
updates are taking and possibly alert you to a "hung" update.

Guy

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2003-01-24 19:03:56 Re: CAST from VARCHAR to INT
Previous Message Guy Fraser 2003-01-24 18:26:27 Re: SQL to list databases?