PQstatus does not seem to work - Mailing list pgsql-general

From Juan Backson
Subject PQstatus does not seem to work
Date
Msg-id 27c25bc40908100941h42461cfdmaf4efeb14e8b646@mail.gmail.com
Whole thread Raw
Responses Re: PQstatus does not seem to work
Re: PQstatus does not seem to work
List pgsql-general
Hi
 
 I used PQstatus(conn) function to check connection status, but I found that it still returns CONNECTION_OK even after postgres is restarted.  Does anyone know if there is another command that I can use to check connection status?
 
What other solution is available to check whether a connection is still alive?
 
Thanks,
JB

pgsql-general by date:

Previous
From: "Rodrick Hales"
Date:
Subject: NOTICE: there is no transaction in progress
Next
From: Bill Thoen
Date:
Subject: Accessing a database form another database