Re: Psql meta-command conninfo+

From: Sami Imseih <samimseih(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Maiquel Grassi <grassi(at)hotmail(dot)com(dot)br>, Hunaid Sohail <hunaidpgml(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, "Imseih (AWS), Sami" <simseih(at)amazon(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru>, Erik Wienhold <ewie(at)ewie(dot)name>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Subject: Re: Psql meta-command conninfo+
Date: 2025-01-09 19:27:51
Message-ID: CAA5RZ0sa0=JP3RCs4_hZ+YVFCeU8b_aHSqiSFdUrf_ushcBTtw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> v35 seems fine to me from a UI standpoint; I suggest we move forward
> with that.

I am also OK with moving forward with a single \conninfo+, but
I think we should include all parameters in [1] as part of the output.
These are the parameters the server reports back to the client. I think
they are all useful to report in this command.

Also, we should also make "role" a part of the PQparameterStatus
list. This is because is_superuser can change when either
"session authorization" or "role" changes. See [2]

[1] https://www.postgresql.org/docs/current/libpq-status.html#LIBPQ-PQPARAMETERSTATUS
[2] https://www.postgresql.org/message-id/CAA5RZ0vN3RbekDNUUhD7CTFL2t7imZ2JS--aFNMHz18mr_yzNA%40mail.gmail.com

Regards,

Sami

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2025-01-09 19:35:00 Re: Psql meta-command conninfo+
Previous Message Jacob Champion 2025-01-09 19:18:21 Re: [PoC] Federated Authn/z with OAUTHBEARER