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

From: Neil Conway <neilc(at)samurai(dot)com>
To: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: psql patch: new host/port without leaving session
Date: 2006-04-02 00:07:23
Message-ID: 1143936443.21012.32.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Sun, 2006-03-12 at 19:59 +0200, Volkan YAZICI wrote:
> I've written do_connect() and \c handling part from scratch in the
> attached patch.

Attached is a revised version of this patch. I rewrote most of the code,
because the existing stuff was in pretty bad style IMHO. I haven't
updated the documentation yet, but I'll do that if no one objects to
this version of the patch.

One question about behavior: in the attached patch, omitting an argument
to \connect or specifying "-" are treated equivalently -- the value for
that parameter from the previous connection is used, otherwise NULL (for
the libpq default). Is this what people want? (One possible complaint is
that once you specify a parameter, you can't get back to the libpq
default without specifying it explicitly.)

-Neil

Attachment Content-Type Size
psql_connect_fix-3.patch text/x-patch 17.2 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-04-02 00:37:14 Re: Suggestion: Which Binary?
Previous Message David Wheeler 2006-04-01 23:51:36 Re: Suggestion: Which Binary?