Bonjour Michaƫl,
First, it seems to me that it is necessary to overcomplicate the
interface of psql for that. Most of the other formats don't have their
own switch, and it is perfectly possible to use CSV format with just
--pset=format=csv.
Although this work, it is not very user friendly nor easy to memorize.
Quite a few direct format options already exists, eg -A --no-align (yuk,
-A means not to align... :-(), -H --html...
In this context "--csv" looks pretty unambiguous and more useful, so I
would be in favor of keeping this option.
-C could also be useful for other things, say compression.
Sure. -C is *NOT* used for --csv in the patch, although it may have been
with an earlier version?
In the regression tests, "col 9" is wanted with a newline?
Yes, the point is to check whether quoting & escaping are triggered
appropriately in column names and values.
--
Fabien.