Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5173864FCE4 for ; Wed, 23 Jul 2008 03:47:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18615-01 for ; Wed, 23 Jul 2008 03:47:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp107.biz.mail.re2.yahoo.com (smtp107.biz.mail.re2.yahoo.com [206.190.52.176]) by postgresql.org (Postfix) with SMTP id DA2B964FCCC for ; Wed, 23 Jul 2008 03:47:14 -0300 (ADT) Received: (qmail 12038 invoked from network); 23 Jul 2008 06:47:13 -0000 Received: from unknown (HELO STSBANWRK134) (sunil@6dtech.co.in@61.95.192.235 with login) by smtp107.biz.mail.re2.yahoo.com with SMTP; 23 Jul 2008 06:47:12 -0000 X-YMail-OSG: ZJTv_ogVM1mj4UmKKVs_GDv7IR4likYbf.RmtVjJo2Lue_RYBVyE8zmi5U4TbxcWsnW7y_kCSF3xNuBPTGVrEDfdtH9msvIl2bi1eDdjmh68EKZ6WDtWi.6pvNZAmnI- X-Yahoo-Newman-Property: ymail-3 Message-ID: <009501c8ec90$18bf11c0$be00a8c0@6dBangalore.co.in> From: "Sunil Khatri" To: "Tom Lane" Cc: References: <001901c8ec12$66ad2990$be00a8c0@6dBangalore.co.in> <714.1216747726@sss.pgh.pa.us> Subject: Re: PQstatus is getting blocked when database sytem powered off Date: Wed, 23 Jul 2008 12:18:18 +0530 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200807/16 X-Sequence-Number: 6774 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" To: "Sunil Khatri" Cc: Sent: Tuesday, July 22, 2008 10:58 PM Subject: Re: [INTERFACES] PQstatus is getting blocked when database sytem powered off > "Sunil Khatri" 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 > >