Search Postgresql Archives

Re: run function on server restart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx <mailto:Kevin.Grittner@xxxxxxxxxxxx>> wrote:

    "John D. West" <john.d.west@xxxxxxx <mailto:john.d.west@xxxxxxx>> 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).




--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux