Re: psql doesn't reuse -p after backend fail - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: psql doesn't reuse -p after backend fail
Date
Msg-id 201109061549.p86Fnmt15259@momjian.us
Whole thread Raw
In response to Re: psql doesn't reuse -p after backend fail  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: psql doesn't reuse -p after backend fail  (Denish Patel <denish@omniti.com>)
List pgsql-bugs
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. +

pgsql-bugs by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: psql doesn't reuse -p after backend fail
Next
From: "Hadmut"
Date:
Subject: BUG #6199: Can't install datatype hstore