Change \conninfo to use tabular format
authorÁlvaro Herrera <[email protected]>
Sat, 22 Feb 2025 09:05:26 +0000 (10:05 +0100)
committerÁlvaro Herrera <[email protected]>
Sat, 22 Feb 2025 09:05:26 +0000 (10:05 +0100)
commitbba2fbc6238b2a0a7f348fbbb5c31ffa7623bc39
treeaf7071179ac28026e9d61c048ba1c3f303b7280c
parent4f1b6e5bb4fe9bc74395d30d689b28e9cda654a5
Change \conninfo to use tabular format

(Initially the proposal was to keep \conninfo alone and add this feature
as \conninfo+, but we decided against keeping the original.)

Also display more fields than before, though not as many as were
suggested during the discussion.  In particular, we don't show 'role'
nor 'session authorization', for both which a case can probably be made.
These can be added as followup commits, if we agree to it.

Some (most?) reviewers actually reviewed rather different versions of
the patch and do not necessarily endorse the current one.

Co-authored-by: Maiquel Grassi <[email protected]>
Co-authored-by: Hunaid Sohail <[email protected]>
Reviewed-by: Nathan Bossart <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Reviewed-by: Sami Imseih <[email protected]>
Reviewed-by: David G. Johnston <[email protected]>
Reviewed-by: Jim Jones <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Reviewed-by: Pavel Luzanov <[email protected]>
Reviewed-by: Dean Rasheed <[email protected]>
Reviewed-by: Erik Wienhold <[email protected]>
Discussion: https://postgr.es/m/CP8P284MB24965CB63DAC00FC0EA4A475EC462@CP8P284MB2496.BRAP284.PROD.OUTLOOK.COM
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c