Re: Emitting JSON to file using COPY TO

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Emitting JSON to file using COPY TO
Дата
Msg-id 3853387.1701096982@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Emitting JSON to file using COPY TO  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Emitting JSON to file using COPY TO
Список pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> I agree there should be a copy option for “not formatted” so if you dump a
> single column result in that format you get the raw unescaped contents of
> the column.

I'm not sure I even buy that.  JSON data in particular is typically
multi-line, so how will you know where the row boundaries are?
That is, is a newline a row separator or part of the data?

You can debate the intelligence of any particular quoting/escaping
scheme, but imagining that you can get away without having one at
all will just create its own problems.

            regards, tom lane



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

Предыдущее
От: CG
Дата:
Сообщение: Re: Removing oids with pg_repack
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: PostgreSql: Canceled on conflict out to old pivot