Hi,
It would be viable and appropriate to implement a unified function that provides important information about the current connection?
Just an example: "Current Connection Informations".
I implemented it in PL/pgSQL to demonstrate the idea, see on GitHub:
https://github.com/maiquelgrassi/DBA-toolkit/blob/main/cluster/dba_whoami_function.sql
Regards,
Maiquel.