X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1351611F625E for ; Wed, 29 Mar 2006 23:23:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84631-03 for ; Wed, 29 Mar 2006 23:23:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from fetter.org (dsl092-188-065.sfo1.dsl.speakeasy.net [66.92.188.65]) by postgresql.org (Postfix) with ESMTP id D6DFE11F65B5 for ; Wed, 29 Mar 2006 23:23:27 -0400 (AST) Received: by fetter.org (Postfix, from userid 500) id 7AFDCC62AE; Wed, 29 Mar 2006 19:23:28 -0800 (PST) Date: Wed, 29 Mar 2006 19:23:28 -0800 From: David Fetter To: Tom Lane Cc: Philip Yarra , pgsql-hackers@postgresql.org Subject: Re: psql \c error Message-ID: <20060330032328.GC22611@fetter.org> References: <200603301120.09969.philip@utiba.com> <9241.1143688791@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9241.1143688791@sss.pgh.pa.us> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.128 required=5 tests=[AWL=0.128] X-Spam-Score: 0.128 X-Spam-Level: X-Archive-Number: 200603/1256 X-Sequence-Number: 81654 On Wed, Mar 29, 2006 at 10:19:51PM -0500, Tom Lane wrote: > Philip Yarra 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: I sent one patch to fix this, which went ignored, and Volkan Yazici sent another one, to which the same thing happened. Cheers, D > > 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 you use > \c to connect (optionally) to a new host and port without exiting > psql. This eliminates, IMHO, a surprise in that you can now > connect to PostgreSQL on a differnt machine from the one where you > started your session. This should help people who use psql as an > administrative 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings -- David Fetter http://fetter.org/ phone: +1 415 235 3778 AIM: dfetter666 Skype: davidfetter Remember to vote!