From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
Cc: | Maiquel Grassi <grassi(at)hotmail(dot)com(dot)br>, "Imseih (AWS), Sami" <simseih(at)amazon(dot)com>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru>, Erik Wienhold <ewie(at)ewie(dot)name>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Psql meta-command conninfo+ |
Date: | 2024-04-04 15:53:37 |
Message-ID: | 202404041553.srcj7n3auv65@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2024-Apr-04, Peter Eisentraut wrote:
> But I don't really see the point of this. The information you are querying
> is already available in various system views. This proposal is just a
> shorthand for a collection of various random things some people like to see.
> Like, by what reason is application name included as connection info? Why
> not any other session settings? What about long-term maintenance: By what
> logic should things be added to this?
Usability is precisely the point. You could also claim that we don't
need \dconfig, since you could get the same thing by querying
pg_settings for non-default settings. But \dconfig is very handy. I
expect \conninfo+ to be equally useful. We don't give up command
history just on the grounds that you can obtain the same effect by
retyping the command.
I'm not sure to what extent is it useful to make a distinction between
the values that the client knows from those that the server knows. If
it is, then we can redefine \conninfo+ to use the client values.
The point about application_name is a valid one. I guess it's there
because it's commonly given from the client side rather than being set
server-side, even though it's still a GUC. Arguably we could remove it
from \conninfo+, and claim that nothing that shows up in \dconfig should
also appear in \conninfo+. Then users should get in the habit of using
both to obtain a full picture. This sounds to me a very good compromise
actually.
--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
Tom: There seems to be something broken here.
Teodor: I'm in sackcloth and ashes... Fixed.
http://postgr.es/m/482D1632.8010507@sigaev.ru
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-04-04 15:58:59 | Re: Psql meta-command conninfo+ |
Previous Message | Maiquel Grassi | 2024-04-04 15:42:29 | RE: Psql meta-command conninfo+ |