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 3F3D2581-6C95-48BE-88C8-C978B65A9170@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
> 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. 

Regards,

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






pgsql-hackers by date:

Previous
From: Robert Haas
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)