Re: proposal - support tsv output format for psql

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal - support tsv output format for psql
Date: 2020-12-23 15:39:48
Message-ID: CAFj8pRDJ2+YGaM6AA9QT=O2ByBWcdqz1Lr5=jnXm49OpECNTEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

st 23. 12. 2020 v 16:24 odesílatel Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> napsal:

> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > On Wed, Dec 23, 2020 at 07:18:24AM +0100, Pavel Stehule wrote:
> >> Implementation of tsv format should not be hard.
> >> What do you think about this?
>
> > How would you handle tabs in the data?
>
> The main problem with csv is the severe lack of standardization
> around what to do with corner cases (delimiters in data, empty
> fields, etc). Seems like "tsv" would be even worse. Is there
> an actual standard anywhere?
>

Probably not - there are just common conventions.

standard disallows tab chars inside

https://www.iana.org/assignments/media-types/text/tab-separated-values

Regards

Pavel

> regards, tom lane
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2020-12-23 15:54:17 Re: proposal - support tsv output format for psql
Previous Message Tom Lane 2020-12-23 15:24:55 Re: proposal - support tsv output format for psql