Re: psql \conninfo command (was: Patch: psql \whoami option) - Mailing list pgsql-hackers

From David Christensen
Subject Re: psql \conninfo command (was: Patch: psql \whoami option)
Date
Msg-id 7819512E-BE95-4E75-80DD-D1B11F33924E@endpoint.com
Whole thread Raw
In response to Re: psql \conninfo command (was: Patch: psql \whoami option)  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: psql \conninfo command (was: Patch: psql \whoami option)
List pgsql-hackers
On Jul 19, 2010, at 11:10 PM, Robert Haas wrote:

> On Tue, Jul 20, 2010 at 12:07 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>> On Tue, Jul 20, 2010 at 12:02 AM, David Christensen <david@endpoint.com> wrote:
>>>> I would propose to print instead:
>>>>
>>>> You are connected to database "rhaas" via local socket as user "rhaas".
>>>
>>>
>>> One minor quibble here; you lose the ability to see which pg instance you're running on if there are multiple ones
runningon different local sockets, so maybe either the port or the socket path should show up here still. 
>>
>> Doh.  Will fix.
>
> Something like the attached?


Looks good to me.

Regards,

David
--
David Christensen
End Point Corporation
david@endpoint.com






pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [COMMITTERS] pgsql: pgindent run for 9.0, second run
Next
From: Itagaki Takahiro
Date:
Subject: Re: patch: preload dictionary new version