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

From Nathan Bossart
Subject Re: Psql meta-command conninfo+
Date
Msg-id 20240209024155.GA659389@nathanxps13
Whole thread Raw
In response to RE: Psql meta-command conninfo+  (Maiquel Grassi <grassi@hotmail.com.br>)
Responses Re: Psql meta-command conninfo+
RE: Psql meta-command conninfo+
List 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



pgsql-hackers by date:

Previous
From: Jeevan Chalke
Date:
Subject: Re: recently added jsonpath method change jsonb_path_query, jsonb_path_query_first immutability
Next
From: Sutou Kouhei
Date:
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations