Re: psql \conninfo command (was: Patch: psql \whoami option)
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: David Christensen <david@endpoint.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Steve Singer <ssinger_pg@sympatico.ca>, pgsql-hackers Hackers <pgsql-hackers@postgresql.org>
Date: 2010-07-20T04:10:39Z
Lists: pgsql-hackers
Attachments
- psql-conninfo-fix.patch (application/octet-stream) patch
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 running on different local sockets, so maybe either the port or the socket path should show up here still. > > Doh. Will fix. Something like the attached? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise Postgres Company