Re: proposal - support tsv output format for psql - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: proposal - support tsv output format for psql
Date
Msg-id 438634af-5982-13c2-8284-c984166f5ab6@dunslane.net
Whole thread Raw
In response to Re: proposal - support tsv output format for psql  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
On 12/23/20 10:13 AM, Pavel Stehule wrote:
>
>
> After this second check, I think the new format is not necessary,
> because tsv in LO is not tsv, but it is cracked csv
>
>


I agree, I don't think this is a format we need to spent much time on.


If you set the quote to an unlikely character like ^A, the escape
character to '\', and the delimiter to TAB, COPY in CSV mode will give
you something pretty close in many cases. Embedded newlines will still
give you trouble.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: proposal - support tsv output format for psql
Next
From: Pavel Stehule
Date:
Subject: Re: proposal - support tsv output format for psql