Re: PQstatus is getting blocked when database sytem powered off

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQstatus is getting blocked when database sytem powered off
Дата
Msg-id 714.1216747726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PQstatus is getting blocked when database sytem powered off  ("Sunil Khatri" <sunil@6dtech.co.in>)
Список pgsql-interfaces
"Sunil Khatri" <sunil@6dtech.co.in> writes:
> Problem is : PQstatus is getting blocked If the system on which database server is running is powered off.

Hardly likely, considering that PQstatus is just

ConnStatusType
PQstatus(const PGconn *conn)
{if (!conn)    return CONNECTION_BAD;return conn->status;
}


I have no doubt that a query-issuing call could get blocked if the
postmaster stops responding, but not PQstatus.
        regards, tom lane


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

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