Re: Emitting JSON to file using COPY TO

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Davin Shearer <davin(at)apache(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Emitting JSON to file using COPY TO
Date: 2023-12-06 16:26:35
Message-ID: 1110315.1701879995@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Joe Conway <mail(at)joeconway(dot)com> writes:
> On 12/6/23 10:44, Tom Lane wrote:
>> In particular, has anyone done any performance testing?

> I will devise some kind of test and report back. I suppose something
> with many rows and many narrow columns comparing time to COPY
> text/csv/json modes would do the trick?

Yeah. If it's at least in the same ballpark as the existing text/csv
formats then I'm okay with it. I'm worried that it might be 10x worse,
in which case I think we'd need to do something.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sehrope Sarkuni 2023-12-06 16:28:33 Re: Emitting JSON to file using COPY TO
Previous Message Adrian Klaver 2023-12-06 16:25:51 Re: Delete Account

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2023-12-06 16:27:44 Re: Remove MSVC scripts from the tree
Previous Message Andrew Dunstan 2023-12-06 16:19:54 Re: Emitting JSON to file using COPY TO