Re: scheduler in core - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: scheduler in core
Date
Msg-id 1266775881.7341.29972.camel@ebony
Whole thread Raw
In response to Re: scheduler in core  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: scheduler in core
Re: scheduler in core
Re: scheduler in core
List pgsql-hackers
On Sat, 2010-02-20 at 18:19 -0500, Tom Lane wrote:
> Dimitri Fontaine <dfontaine@hi-media.com> writes:
> > Dave Page <dpage@pgadmin.org> writes:
> >> Why not just use pgAgent? It's far more flexible than the design
> >> you've suggested, and already exists.
> 
> > What would it take to have it included in core,
> 
> I don't think this really makes sense.  There's basically no argument
> for having it in core other than "I'm too lazy to install a separate
> package".  Unlike the case for autovacuum, there isn't anything an
> in-core implementation could do that an external one doesn't do as well
> or better.  So I'm not eager to take on additional maintenance burden
> for such a thing.

There is currently no way to run a separate daemon process that runs
user code as part of Postgres, so that the startup code gets run
immediately we startup, re-run if we crash and shut down cleanly when
the server does. If there were some way to run arbitrary code in a
daemon using an extensibility API then we wouldn't ever get any requests
for the scheduler, cos you could write it yourself without troubling
anybody here.

-- Simon Riggs           www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: PGXS: REGRESS_OPTS=--load-language=plpgsql
Next
From: Robert Haas
Date:
Subject: Re: scheduler in core