Re: proposal \gcsv - Mailing list pgsql-hackers

From Daniel Verite
Subject Re: proposal \gcsv
Date
Msg-id 4554ba7b-fe24-495e-96d1-d43b17a8cc38@manitou-mail.org
Whole thread Raw
In response to Re: proposal \gcsv  (Erik Rijkers <er@xs4all.nl>)
Responses Re: proposal \gcsv  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: proposal \gcsv  (Erik Rijkers <er@xs4all.nl>)
List 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



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: base backup client as auxiliary backend process
Next
From: Pavel Stehule
Date:
Subject: Re: proposal \gcsv