Re: Psql meta-command conninfo+

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Maiquel Grassi <grassi(at)hotmail(dot)com(dot)br>
Cc: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, Erik Wienhold <ewie(at)ewie(dot)name>, Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Psql meta-command conninfo+
Date: 2024-02-09 02:41:55
Message-ID: 20240209024155.GA659389@nathanxps13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sorry if this has been brought up, but I noticed that some of the
information is listed below the result set:

postgres=# \conninfo+
Current Connection Information
-[ RECORD 1 ]------+---------
Database | postgres
Authenticated User | nathan
System User |
Current User | nathan
Session User | nathan
Session PID | 659410
Server Version | 17devel
Server Address | ::1
Server Port | 5432
Client Address | ::1
Client Port | 59886
Socket Directory |
Host | ::1

SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off)

Shouldn't we move this information into the result set? Separately, does
the server version really belong here? I'm not sure I would consider that
to be connection information.

--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sutou Kouhei 2024-02-09 04:19:50 Re: Make COPY format extendable: Extract COPY TO format implementations
Previous Message Jeevan Chalke 2024-02-09 02:02:50 Re: recently added jsonpath method change jsonb_path_query, jsonb_path_query_first immutability