Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 72D5EB5DC09 for ; Tue, 6 Sep 2011 12:38:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 97658-02 for ; Tue, 6 Sep 2011 15:38:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from depesz.com (andy.depesz.com [88.198.47.100]) by mail.postgresql.org (Postfix) with ESMTP id D6DBBB5DBE9 for ; Tue, 6 Sep 2011 12:38:30 -0300 (ADT) Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.76) (envelope-from ) id 1R0xjJ-0004X3-98; Tue, 06 Sep 2011 17:38:29 +0200 Date: Tue, 6 Sep 2011 17:38:29 +0200 From: hubert depesz lubaczewski To: Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: psql doesn't reuse -p after backend fail Message-ID: <20110906153828.GA16610@depesz.com> Reply-To: depesz@depesz.com References: <20110905174633.GA7752@depesz.com> <11444.1315247243@sss.pgh.pa.us> <20110906151253.GA1209@depesz.com> <7375.1315323343@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7375.1315323343@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/43 X-Sequence-Number: 31060 On Tue, Sep 06, 2011 at 11:35:43AM -0400, Tom Lane wrote: > hubert depesz lubaczewski writes: > > On Mon, Sep 05, 2011 at 02:27:23PM -0400, Tom Lane wrote: > >> It's not just the port, it's all the connection parameters --- > >> do_connect relies on the PGconn object to remember those, and in this > >> case there no longer is a PGconn object. > >> > >> We could have psql keep that information separately, but I'm not sure > >> it's really worth the trouble. > > > well, I think it's definitely worth the trouble. > > [ shrug.. ] So submit a patch. Personally I don't think the case comes way above my skillset :( > up often enough to be worth the trouble, and I'd much rather spend > development time on preventing the server from crashing in the first > place. the reason for the crash is discussed in the pg_upgrade thread on hackers. ( 8.3 ltree + pg_upgrade to 9.0.5 == backend crash on select). Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/