Re: psql patch: new host/port - Mailing list pgsql-hackers

From David Fetter
Subject Re: psql patch: new host/port
Date
Msg-id 20051212155918.GB16501@fetter.org
Whole thread Raw
In response to Re: psql patch: new host/port  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Dec 12, 2005 at 10:19:00AM -0500, Tom Lane wrote:
> Michael Glaesemann <grzm@myrealbox.com> writes:
> > On Dec 9, 2005, at 18:10 , David Fetter wrote:
> >> Please find enclosed a patch that lets you use \c to connect
> >> (optionally) to a new host and port without exiting psql.
> 
> > I'm not familiar enough with the psql code to be able to tell, but
> > is  this secure? The pg_hba.conf on the new server is enforced, I
> > assume?
> 
> No, security is the server's problem.
> 
> What's not clear to me about this patch is what's the point.  It's
> certainly not a feature we've heard any requests for.

Informally, I've heard some carping about how you can change DBs on
one server, but you have to exit the program if you want to change
servers.  The change is low-impact because \c continues to work
exactly as before when supplied with < 3 arguments :)

Cheers,
D
-- 
David Fetter david@fetter.org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Different length lines in COPY CSV
Next
From: Tom Lane
Date:
Subject: Re: pg_relation_size locking