PQstatus is not returning

Поиск
Список
Период
Сортировка
От Sunil Khatri
Тема PQstatus is not returning
Дата
Msg-id 009001c8ec11$60fbe820$be00a8c0@6dBangalore.co.in
обсуждение исходный текст
Список pgsql-interfaces
Hi,
In my application I need to check connection status before executing the query. I am doing it using PQstatus.
Problem is : PQstatus is getting blocked If the system on which database server is running is powered off.
If I shutdown the database using pg_ctl stop or pkill -9 postmaster in that case its returning.
 
Is there any other way to check the connection status in this case?
 
Thanks
Sk

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

Предыдущее
От: Markus Wanner
Дата:
Сообщение: Re: connecting with libpq interface
Следующее
От: "Sunil Khatri"
Дата:
Сообщение: PQstatus is getting blocked when database sytem powered off