Re: Psql meta-command conninfo+
Jim Jones <jim.jones@uni-muenster.de>
From: Jim Jones <jim.jones@uni-muenster.de>
To: Hunaid Sohail <hunaidpgml@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
Maiquel Grassi <grassi@hotmail.com.br>,
Nathan Bossart <nathandbossart@gmail.com>,
"Imseih (AWS), Sami" <simseih@amazon.com>,
Peter Eisentraut <peter@eisentraut.org>, Tom Lane <tgl@sss.pgh.pa.us>,
Pavel Luzanov <p.luzanov@postgrespro.ru>, Erik Wienhold <ewie@ewie.name>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2024-09-12T11:08:01Z
Lists: pgsql-hackers
On 11.09.24 13:35, Hunaid Sohail wrote: > Hi Jim, > > On Wed, Sep 11, 2024 at 3:03 PM Jim Jones <jim.jones@uni-muenster.de> > wrote: > > 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. > > > I am not sure which design you are referring to. > I haven't applied the v28 patch but the original author in thread [1] > provided sample output. The output is in tabular form with 2 columns > and multiple rows. > > [1] https://www.postgresql.org/message-id/CP8P284MB249615AED23882E1E185C8ABEC3C2%40CP8P284MB2496.BRAP284.PROD.OUTLOOK.COM > It may look like this, but it is a single record --- mind the header "-[ RECORD 1 ]----------------+---------". psql was called in expanded mode: > $ /home/pgsql-17devel/bin/psql -x -p 5432 "-x" or "--expanded" Example: $ psql postgres -xc "SELECT 'foo' col1, 'bar' col2" -[ RECORD 1 ] col1 | foo col2 | bar -- Jim
Commits
-
psql: Change new \conninfo to use SSL instead of TLS
- 6d6480066c1a 18.0 landed
-
Change \conninfo to use tabular format
- bba2fbc6238b 18.0 landed
-
Update extension lookup routines to use the syscache
- d8df7ac5c04c 18.0 cited
-
Improve COPY TO performance when server and client encodings match
- b619852086ed 17.0 cited
-
doc: Remove superfluous bracket in synopsis
- fdfb92c0307c 17.0 cited
-
Remove psql support for server versions preceding 9.2.
- cf0cab868aa4 15.0 cited