Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread David Fetter
On Mon, Dec 12, 2005 at 10:19:00AM -0500, Tom Lane wrote: > Michael Glaesemann <[EMAIL PROTECTED]> 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 n

Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread Tom Lane
Michael Glaesemann <[EMAIL PROTECTED]> 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 > t

Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread David Fetter
On Mon, Dec 12, 2005 at 09:20:57PM +0900, Michael Glaesmann wrote: > > On Dec 12, 2005, at 21:32 , Andrew Dunstan wrote: > > >The patch is to the client only, not even to libpq, so of course no > >auth bypass is involved. > > Cool. Thanks for the explanation, Andrew. Is the patch suitable for a

Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread Michael Glaesemann
On Dec 12, 2005, at 21:32 , Andrew Dunstan wrote: The patch is to the client only, not even to libpq, so of course no auth bypass is involved. Cool. Thanks for the explanation, Andrew. Michael Glaesemann grzm myrealbox com ---(end of broadcast)

Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread Andrew Dunstan
Michael Glaesemann said: > > On Dec 12, 2005, at 20:33 , Peter Eisentraut wrote: > >> Michael Glaesemann wrote: >>> 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? >> >> You don't need to be familiar wit

Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread Michael Glaesemann
On Dec 12, 2005, at 20:33 , Peter Eisentraut wrote: Michael Glaesemann wrote: 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? You don't need to be familiar with the psql code to know that it would be

Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread Peter Eisentraut
Michael Glaesemann wrote: > 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? You don't need to be familiar with the psql code to know that it would be pretty stupid if client programs could override the s

Re: [HACKERS] psql patch: new host/port

2005-12-12 Thread Michael Glaesemann
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 enfor