Re: proposal \gcsv

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Erik Rijkers" <er(at)xs4all(dot)nl>
Cc: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>,"Vik Fearing" <vik(at)postgresfriends(dot)org>,"PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal \gcsv
Date: 2020-03-28 14:06:05
Message-ID: 4554ba7b-fe24-495e-96d1-d43b17a8cc38@manitou-mail.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Erik Rijkers wrote:

> 2. let the psql command-line option '--csv' honour the value given by
> psql -F/--field-separator (it does not do so now)
>
> or
>
> 3. add an psql -commandline option:
> --csv-field-separator

Setting the field separator on the command line is already supported
through this kind of invocation:

psql --csv -P csv_fieldsep=$'\t'

bash expands $'\t' to a tab character. Other shells might need
different tricks.

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2020-03-28 14:06:59 pgsql: Enable Unix-domain sockets support on Windows
Previous Message Alvaro Herrera 2020-03-28 13:49:02 Re: base backup client as auxiliary backend process