Re: Psql meta-command conninfo+ - Mailing list pgsql-hackers

From Sami Imseih
Subject Re: Psql meta-command conninfo+
Date
Msg-id CAA5RZ0sa0=JP3RCs4_hZ+YVFCeU8b_aHSqiSFdUrf_ushcBTtw@mail.gmail.com
Whole thread Raw
In response to Re: Psql meta-command conninfo+  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Psql meta-command conninfo+
List 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



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER
Next
From: "David G. Johnston"
Date:
Subject: Re: Psql meta-command conninfo+