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

From Sami Imseih
Subject Re: Psql meta-command conninfo+
Date
Msg-id CAA5RZ0vmKYcGbZqtxMcPTFrNPGm1-9_9U3nnYSM7aG+Oin5gjw@mail.gmail.com
Whole thread Raw
In response to Re: Psql meta-command conninfo+  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Psql meta-command conninfo+
List pgsql-hackers
> If we want to include 'role' in this output, what I'd propose is to
> have \conninfo issue "SHOW role", which is accepted by every server
> version.  If it fails (say because we're in an aborted transaction),
> just omit that row from the output.

v37- would have handled this as the list of PQ parameters was
dynamically generated and only those parameters
reported by the specific version of the server showed up in
\conninfo+.

Of course that may have led to confusion in which some versions
show role while others did not, but that could be dealt with in
documentation.

--

Sami Imseih
Amazon Web Services (AWS)



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Restrict copying of invalidated replication slots
Next
From: Michael Paquier
Date:
Subject: Re: Missing [NO] INDENT flag in XMLSerialize backward parsing