Skip site navigation (1) Skip section navigation (2)

Re: psql \conninfo command (was: Patch: psql \whoami option)

From: David Christensen <david(at)endpoint(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Steve Singer <ssinger_pg(at)sympatico(dot)ca>, pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql \conninfo command (was: Patch: psql \whoami option)
Date: 2010-07-20 04:02:40
Message-ID: 3F3D2581-6C95-48BE-88C8-C978B65A9170@endpoint.com (view raw or flat)
Thread:
Lists: 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 running on 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(at)endpoint(dot)com





In response to

Responses

pgsql-hackers by date

Next:From: Robert HaasDate: 2010-07-20 04:07:22
Subject: Re: psql \conninfo command (was: Patch: psql \whoami option)
Previous:From: Robert HaasDate: 2010-07-20 03:55:20
Subject: Re: psql \conninfo command (was: Patch: psql \whoami option)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group