Re: connection watchdog

Поиск
Список
Период
Сортировка
Искать
От
Magnus Naeslund(f)
Тема
Re: connection watchdog
Дата
Msg-id
08fb01c27088$f564c3c0$f80c0a0a@mnd
Список
Дерево обсуждения
Re: connection watchdog frbn <frbn@efbs-seafrigo.fr>
Re: connection watchdog Michael Kichanov <mike@nordlink.ru>
Michael Kichanov  wrote:
>
> thanx, but now I doing just this thing :)
> and I would need something like PQping() ;)
>
> mike
>

In our listen/notify cache i just collect the socket and select() on it.
When it returns we do a  PQconsumeInput(conn); i think that catches a
backend being killed for example.

Magnus

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

В списке pgsql-general по дате отправления
От: Hector Galicia
Дата:
Сообщение: cursors
От: Josh Burdick
Дата:
Сообщение: question about executing JOINs
FAQ