Re: PQstatus is getting blocked when database sytem powered off - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: PQstatus is getting blocked when database sytem powered off
Date
Msg-id 714.1216747726@sss.pgh.pa.us
Whole thread Raw
In response to PQstatus is getting blocked when database sytem powered off  ("Sunil Khatri" <sunil@6dtech.co.in>)
List 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 by date:

Previous
From: "Sunil Khatri"
Date:
Subject: PQstatus is getting blocked when database sytem powered off
Next
From: "Sunil Khatri"
Date:
Subject: Re: PQstatus is getting blocked when database sytem powered off