> 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)