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