Re: psql patch: new host/port without leaving session

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: psql patch: new host/port without leaving session
Date: 2006-03-12 17:59:10
Message-ID: 20060312175910.GC490@alamut
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hi,

I've written do_connect() and \c handling part from scratch in the
attached patch. Here are some features introduced:

- \c syntax is extended. (See comment lines just above \c stuff.)
- do_connect() AI (like used for prompting password or informing
client about connect attempt's result.) improved.
- Some code clean up.

If you'd agree with the style, I'll add patch for the documentation and
PO files too.

Regards.

P.S. Patch passed regressions tests on CVS tip.

On Dec 13 04:29, 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. 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.

Attachment Content-Type Size
psql_connect.0 text/plain 15.0 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Mark Kirkwood 2006-03-12 22:48:33 Re: [PATCHES] pg_freespacemap question
Previous Message Tom Lane 2006-03-12 17:37:35 Proposed patch for error locations