Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 92E061337B97 for ; Fri, 26 Nov 2010 19:30:15 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 70722-01 for ; Fri, 26 Nov 2010 23:30:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 8AAC2133798E for ; Fri, 26 Nov 2010 19:30:07 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oAQNU3KO005595; Fri, 26 Nov 2010 18:30:03 -0500 (EST) To: Bruce Momjian , Fujii Masao , Magnus Hagander , Ashesh Vashi , Mark Llewellyn , pgsql-hackers@postgresql.org, Sujeet Rajguru Subject: Re: Re: [BUGS] BUG #5650: Postgres service showing as stopped when in fact it is running In-reply-to: <16039.1290803973@sss.pgh.pa.us> References: <201011261919.oAQJJp504942@momjian.us> <16039.1290803973@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 26 Nov 2010 15:39:33 -0500" Date: Fri, 26 Nov 2010 18:30:03 -0500 Message-ID: <5594.1290814203@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/1816 X-Sequence-Number: 174959 I wrote: > The reason this is a problem is that somebody, in a fit of inappropriate > optimization, took out the code that allowed canAcceptConnections to > distinguish the "not consistent yet" state. Oh, no, that's not the case --- the PM_RECOVERY postmaster state does still distinguish not-ready from ready. The real problem is that what Bruce implemented has practically nothing to do with what was discussed last week. PQping is supposed to be smarter about classifying errors than this. Speaking of classifying errors, should we have a fourth result value to cover "obviously bogus parameters"? Right now you'll get PQNORESPONSE for cases like incorrect syntax in the conninfo string. I'm not sure how tense we ought to try to be about distinguishing, but if libpq failed before even attempting a connection, PQNORESPONSE seems a bit misleading. regards, tom lane