Re: Emitting JSON to file using COPY TO - Mailing list pgsql-hackers

From Maciek Sakrejda
Subject Re: Emitting JSON to file using COPY TO
Date
Msg-id CAOtHd0C+k8M1HYPubnH6J_7B5Eh5_nrun-n3fc9ZsSb_Tq9ZHA@mail.gmail.com
Whole thread Raw
In response to Re: Emitting JSON to file using COPY TO  (Joe Conway <mail@joeconway.com>)
Responses Re: Emitting JSON to file using COPY TO
List pgsql-hackers
On Fri, Dec 1, 2023 at 11:32 AM Joe Conway <mail@joeconway.com> wrote:
> 1. Is supporting JSON array format sufficient, or does it need to
> support some other options? How flexible does the support scheme need to be?

"JSON Lines" is a semi-standard format [1] that's basically just
newline-separated JSON values. (In fact, this is what
log_destination=jsonlog gives you for Postgres logs, no?) It might be
worthwhile to support that, too.

[1]: https://jsonlines.org/



pgsql-hackers by date:

Previous
From: Paul Jungwirth
Date:
Subject: Re: SQL:2011 application time
Next
From: Rafael Thofehrn Castro
Date:
Subject: Proposal: In-flight explain logging