pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: depesz@depesz.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: psql doesn't reuse -p after backend fail
Date: Tue, 6 Sep 2011 11:49:48 -0400 (EDT)
Message-ID: <201109061549.p86Fnmt15259@momjian.us> (raw)
In-Reply-To: <7375.1315323343@sss.pgh.pa.us>

Tom Lane wrote:
> hubert depesz lubaczewski <depesz@depesz.com> 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
> 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.

Should we document this somewhere?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (11+ messages)  latest in thread

Message-ID: <201109061549.p86Fnmt15259@momjian.us>
Permalink:  ../201109061549.p86Fnmt15259@momjian.us/
Also on:    postgresql.org/message-id/201109061549.p86Fnmt15259@momjian.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, depesz@depesz.com
  Subject: Re: psql doesn't reuse -p after backend fail
  In-Reply-To: <201109061549.p86Fnmt15259@momjian.us>
  References: <7375.1315323343@sss.pgh.pa.us> <201109061549.p86Fnmt15259@momjian.us>

* 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