Skip site navigation (1) Skip section navigation (2)

PQstatus is not returning

From: "Sunil Khatri" <sunil(at)6dtech(dot)co(dot)in>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: PQstatus is not returning
Date: 2008-07-22 15:41:13
Message-ID: 009001c8ec11$60fbe820$ (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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?


pgsql-interfaces by date

Next:From: Sunil KhatriDate: 2008-07-22 15:48:32
Subject: PQstatus is getting blocked when database sytem powered off
Previous:From: Markus WannerDate: 2008-07-13 15:56:10
Subject: Re: connecting with libpq interface

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group