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

From Jim Jones
Subject Re: Psql meta-command conninfo+
Date
Msg-id 7707a01b-a324-44a4-865a-a238a5da3a4d@uni-muenster.de
Whole thread Raw
In response to Re: Psql meta-command conninfo+  (Jim Jones <jim.jones@uni-muenster.de>)
Responses Re: Psql meta-command conninfo+
List pgsql-hackers
On 11.09.24 10:16, Hunaid Sohail wrote:
> I have made the requested changes. Now output is returned in tabular 
> form. Indentation/whitespace issues are fixed.
>
> $bin/psql --port=5430 postgres
> postgres=# \conninfo+
> You are connected to database "postgres" as user "hunaid" via socket 
> in "/tmp" at port "5430".
>     Connection Information
>       Parameter       | Value
> ----------------------+--------
>  Protocol Version     | 3
>  SSL Connection       | no
>  GSSAPI Authenticated | no
>  Client Encoding      | UTF8
>  Server Encoding      | UTF8
>  Session User         | hunaid
>  Backend PID          | 121800
> (7 rows)

Thanks for working on this.

Any particular reason for the design change? In v28 it returned a table 
with a single row and multiple columns --- one column per attribute. But 
now it returns multiple rows. In this case, I was expecting 1 row with 7 
columns instead of 7 rows with 2 columns.

Jim




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: json_query conditional wrapper bug
Next
From: Ashutosh Bapat
Date:
Subject: Re: PG_TEST_EXTRA and meson