Re: psql \c error - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql \c error
Date
Msg-id 9241.1143688791@sss.pgh.pa.us
Whole thread Raw
In response to psql \c error  (Philip Yarra <philip@utiba.com>)
Responses Re: psql \c error  (David Fetter <david@fetter.org>)
List pgsql-hackers
Philip Yarra <philip@utiba.com> writes:
> Hi folks, I've found that CVS HEAD psql's \c doesn't quite behave as
> expected 

Yeah, there were complaints about this already.  I think the problem was
introduced by this patch:

2006-02-11 21:54  momjian
* doc/src/sgml/ref/psql-ref.sgml, src/bin/psql/command.c,src/bin/psql/help.c: Please find enclosed a patch that lets
youuse\c to connect (optionally) to a new host and port without exitingpsql.  This eliminates, IMHO, a surprise in that
youcan nowconnect to PostgreSQL on a differnt machine from the one where youstarted your session. This should help
peoplewho use psql as anadministrative tool.David Fetter
 

The patch seems not to behave very reasonably with respect to preserving
prior values for the newly-changeable connection parameters.  I haven't
got time to look into it myself right now though --- do you want to?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: PostgreSQL not stsrt!:( -Re: Please help, pgAdmin3
Next
From: David Fetter
Date:
Subject: Re: psql \c error