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

From Robert Haas
Subject Re: psql \conninfo command (was: Patch: psql \whoami option)
Date
Msg-id AANLkTim53xNGo9ai0cnZAEROYaTIQpOfAA9mhpZjOWCP@mail.gmail.com
Whole thread Raw
In response to Re: psql \conninfo command (was: Patch: psql \whoami option)  (David Christensen <david@endpoint.com>)
Responses Re: psql \conninfo command (was: Patch: psql \whoami option)
List pgsql-hackers
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.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: David Christensen
Date:
Subject: Re: psql \conninfo command (was: Patch: psql \whoami option)
Next
From: Robert Haas
Date:
Subject: Re: psql \conninfo command (was: Patch: psql \whoami option)