Re: run function on server restart - Mailing list pgsql-general

From Rob Sargent
Subject Re: run function on server restart
Date
Msg-id 5037F79E.8070307@gmail.com
Whole thread Raw
In response to Re: run function on server restart  ("John D. West" <john.d.west@asu.edu>)
List pgsql-general
On 08/24/2012 03:46 PM, John D. West wrote:
> I have various background processes outside of postgres that need to be
> killed and restarted after the server reboots.
>
>       -- John
>
>
> On Fri, Aug 24, 2012 at 2:29 PM, Kevin Grittner
> <Kevin.Grittner@wicourts.gov <mailto:Kevin.Grittner@wicourts.gov>> wrote:
>
>     "John D. West" <john.d.west@asu.edu <mailto:john.d.west@asu.edu>> wrote:
>
>      > Sometimes the server process crashes and restarts, usually when I
>      > run some large calculations that eat up all available memory.
>
>     You might want to reconfigure to avoid that.
>
>      > Is there any way to detect this and run a cleanup routine when it
>      > happens?
>
>     What is it that are you trying to clean up?
>
>     -Kevin
>
>
Seems it would be the responsibility of the dependent processes to
recognize pg went away, and clean themselves up (as only they know how
to do).




pgsql-general by date:

Previous
From: Mathieu Fenniak
Date:
Subject: fast-archiver tool, useful for pgsql DB backups
Next
From: "Kevin Grittner"
Date:
Subject: Re: run function on server restart