Re: Can we have time based triggers in Postgresql??

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Can we have time based triggers in Postgresql??
Date: 2004-04-08 15:28:20
Message-ID: 87brm2h4kr.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Nolan <nolan(at)gw(dot)tssi(dot)com> writes:

> > There's no reason you couldn't write a cron daemon that retrieved its list of
> > jobs from an SQL database. In fact we discussed doing exactly this at my last
> > job. I expect others have thought of the same idea and wouldn't be surprised
> > if it existed by now.
>
> Is there (or would we need) a way to specify access privileges for such
> a daemon in pg_hba.conf, and would that allow controlling the access
> privileges for each job or the user who sets it? (ISP's would want
> tight controls here.)

Uh, that's not at all what I was picturing when I wrote the description above.
I was picturing a cron daemon just like any other cron daemon except it
happens to be backed by the database instead of a flat file. The privileges
would be specified in tables just like they're currently specified in flat
files (well currently in the directory structure above the flat files
actually).

The main advantage of such a database backed cron daemon would be the possible
integration with other database backed systems. Job status could be viewed on
database-backed web pages, Jobs could be created or deleted from web pages,
failures could automatically create trouble tickets...

--
greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edwin Quijada 2004-04-08 15:48:27 Big string using Zeos from Delphi
Previous Message Greg Stark 2004-04-08 15:24:00 Re: Storing jpgs