Skip site navigation (1) Skip section navigation (2)

Re: elegant and effective way for running jobs inside a database

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: elegant and effective way for running jobs inside a database
Date: 2012-03-09 18:40:36
Message-ID: CA+TgmobqrFp199fdQZ3SwDq9KmP3bCQ10iMS4bdygQVWibim_g@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On Fri, Mar 9, 2012 at 12:02 PM, David E. Wheeler <david(at)justatheory(dot)com> wrote:
> On Mar 9, 2012, at 7:55 AM, Merlin Moncure wrote:
>> 100% agree  (having re-read the thread and Alvaro's idea having sunk
>> in).  Being able to set up daemon processes side by side with the
>> postmaster would fit the bill nicely.  It's pretty interesting to
>> think of all the places you could go with it.
>
> pgAgent could use it *right now*. I keep forgetting to restart it after restarting PostgreSQL and finding after a day or so that no jobs have run.

That can and should be fixed by teaching pgAgent that failing to
connect to the server, or getting disconnected, is not a fatal error,
but a reason to sleep and retry.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2012-03-09 18:51:37
Subject: Re: elegant and effective way for running jobs inside a database
Previous:From: Robert HaasDate: 2012-03-09 18:23:38
Subject: Re: xlog location arithmetic

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group