Re: csv format for psql
Daniel Verite <daniel@manitou-mail.org>
From: "Daniel Verite" <daniel@manitou-mail.org>
To: "Tom Lane" <tgl@sss.pgh.pa.us>
Cc: "David G. Johnston" <david.g.johnston@gmail.com>,"Fabien COELHO"
<coelho@cri.ensmp.fr>,"Michael Paquier" <michael@paquier.xyz>,"Pg
Hackers" <pgsql-hackers@postgresql.org>
Date: 2018-11-26T19:01:20Z
Lists: pgsql-hackers
Attachments
- psql-csv-backslash-dot-fix-v2.txt (text/plain)
I wrote: > A proposed fix is attached. print_csv_vertical() is left unchanged > because it's not possible currently to end up with \. alone > on a line with the expanded display On second thought, it is possible postgres=# \pset format csv Output format is csv. postgres=# \pset fieldsep_csv '.' Field separator for CSV is ".". postgres=# \x Expanded display is on. postgres=# select '' as "\" ; \. PFA an upgraded fix. Best regards, -- Daniel Vérité PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite
Commits
-
Add CSV table output mode in psql.
- aa2ba50c2c13 12.0 landed
-
Reorganize format options of psql in alphabetical order
- add9182e5908 12.0 landed
-
Complete TODO item:
- 862b20b38228 8.0.0 cited