Catching server shutdown in C

Поиск
Список
Период
Сортировка
От Graeme Hinchliffe
Тема Catching server shutdown in C
Дата
Msg-id 1093251222.26817.5.camel@office-137.zen.co.uk
обсуждение исходный текст
Ответы Re: Catching server shutdown in C  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Hiya
    I am writing a daemon in C which monitors a table stored in postgres.
I would ideally like the daemon to be able to withstand things such as
the db connection going away or the db being shutdown, and simply keep
trying to connect rather than just fall on it's face.

    Is there a way that I can catch a server shutdown/connection loss
cleanly?  I did a quick search of the mailling list but didn't see
anything.

Thanks for your help

--
-----
Graeme Hinchliffe (BSc)
Core Internet Systems Designer
Zen Internet (http://www.zen.co.uk/)

Direct: 0845 058 9074
Main  : 0845 058 9000
Fax   : 0845 058 9005



В списке pgsql-general по дате отправления:

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Pgsql beta 8 on windows starts and stops automatically.
Следующее
От: Daniel Martini
Дата:
Сообщение: Re: pg_dump in stand alone backend