Re: csv format for psql
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Daniel Verite <daniel@manitou-mail.org>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2018-03-07T10:00:59Z
Lists: pgsql-hackers
2018-03-07 10:45 GMT+01:00 Fabien COELHO <coelho@cri.ensmp.fr>: > > Hello Daniel, > > Attached is a v2 fixing the bugs you mentioned, and adding ---csv/-C >> as discussed upthread. I'll add some regression tests shortly. >> > > Basically I'm waiting for the version with regression tests before > reviewing. > > It is unclear whether committer will like it. > > From my point of view being able to simply set postgres to generate csv is > fine with me, with example uses such as: > > psql --csv 'TABLE Stuff;' > stuff.csv > > So that having the --csv option to turn to "full csv", i.e. set the format > and various seperators as expected, would be a nice have. > There is commad -c and it should be used. The --csv options should not to have a parameter. I don't like a idea to have more options for query execution. Regards Pavel > > -- > Fabien. > >
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