pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sunil Khatri <sunil@6dtech.co.in>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PQstatus is getting blocked when database sytem powered off
Date: Wed, 23 Jul 2008 12:18:18 +0530
Message-ID: <009501c8ec90$18bf11c0$be00a8c0@6dBangalore.co.in> (raw)
References: <001901c8ec12$66ad2990$be00a8c0@6dBangalore.co.in>
	<714.1216747726@sss.pgh.pa.us>

Thanks for your reply.
You are right PQstatus is not blocking, query-issuing call is getting
blocked.
Is there any way for handling this blocking situation?

Regards
Sk
----- Original Message ----- 
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Sunil Khatri" <sunil@6dtech.co.in>
Cc: <pgsql-interfaces@postgresql.org>
Sent: Tuesday, July 22, 2008 10:58 PM
Subject: Re: [INTERFACES] PQstatus is getting blocked when database sytem 
powered off


> "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
>
> -- 
> Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-interfaces
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.5.3/1565 - Release Date: 7/21/2008 
> 6:36 PM
>
> 




view thread (3+ messages)

Message-ID: <009501c8ec90$18bf11c0$be00a8c0@6dBangalore.co.in>
Permalink:  ../009501c8ec90$18bf11c0$be00a8c0@6dBangalore.co.in/
Also on:    postgresql.org/message-id/009501c8ec90$18bf11c0$be00a8c0@6dBangalore.co.in

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: sunil@6dtech.co.in, tgl@sss.pgh.pa.us
  Subject: Re: PQstatus is getting blocked when database sytem powered off
  In-Reply-To: <009501c8ec90$18bf11c0$be00a8c0@6dBangalore.co.in>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox