Re: proposal - support tsv output format for psql

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: proposal - support tsv output format for psql
Дата
Msg-id 20201223155417.GH9170@momjian.us
обсуждение исходный текст
Ответ на Re: proposal - support tsv output format for psql  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal - support tsv output format for psql  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On Wed, Dec 23, 2020 at 04:39:48PM +0100, Pavel Stehule wrote:
> 
> 
> st 23. 12. 2020 v 16:24 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
> 
>     Bruce Momjian <bruce@momjian.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

Is it too awkward to throw an error if there is a tab?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal - support tsv output format for psql
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: proposal - support tsv output format for psql