Re: run function on server restart

From: "John D(dot) West" <john(dot)d(dot)west(at)asu(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: run function on server restart
Date: 2012-08-26 15:19:35
Message-ID: CACYo-=+eoSP77XHs=b-5OBmg21zSJjbzsSaFmcrtngecvrhtGA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

It's become clear I need to go back and rethink my logic for this
functionality. Thanks for all of the suggestions.

-- John

On Sat, Aug 25, 2012 at 12:40 AM, Chris Angelico <rosuav(at)gmail(dot)com> wrote:

> On Sat, Aug 25, 2012 at 8:25 AM, John D. West <john(dot)d(dot)west(at)asu(dot)edu> wrote:
> > I *think* my independent processes are cleaning up in that they
> supposedly
> > abort themselves if they lose db connection, but on restart there is a
> table
> > of pid's I'd like to (1) make sure all of the processes are really dead,
> > killing any who aren't (2) reset flags in a table showing the status of
> > those process, and (3) clear out the pid list so I can restart the
> > processes.
>
> Hmm. I wonder is there a way to not use a table for this. What's the
> status flagging intended to do? Can it be accomplished with, perhaps,
> locks?
>
> ChrisA
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Clark 2012-08-26 15:21:56 Re: postmaster.pid file auto-clean up?
Previous Message Thomas Kellerer 2012-08-26 15:02:43 Re: 9.2 and index only scans