Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAujY-008iNa-Ja for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Dec 2023 16:26:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rAujX-00BBMU-7M for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Dec 2023 16:26:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAujW-00BBML-S4 for pgsql-hackers@lists.postgresql.org; Wed, 06 Dec 2023 16:26:46 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAujU-0096ge-DP for pgsql-hackers@postgresql.org; Wed, 06 Dec 2023 16:26:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3B6GQZPe1110316; Wed, 6 Dec 2023 11:26:35 -0500 From: Tom Lane To: Joe Conway cc: Andrew Dunstan , Davin Shearer , PostgreSQL-development Subject: Re: Emitting JSON to file using COPY TO In-reply-to: <70c67e2a-f775-4d27-a5c4-dddaca67cedf@joeconway.com> References: <5c84b70b-ba18-c45d-dbbe-612fa229b2ce@dunslane.net> <398c22f6-4299-4b17-80bf-2f14f4afd592@joeconway.com> <46cc4507-a0d9-4044-b2ce-5a8bca8015c0@joeconway.com> <2554e520-e103-8978-dcb5-807dfeb77402@dunslane.net> <926ff917-8371-40ec-b5e6-ab7b0e09bdc5@joeconway.com> <315b81d4-4b67-7828-0355-3808cd14acd1@dunslane.net> <7a60faf6-e7f1-419d-aee6-10a78ea2fe81@joeconway.com> <2e7ff718-895d-83fc-46f7-be25e23b23b4@dunslane.net> <1104915.1701877459@sss.pgh.pa.us> <70c67e2a-f775-4! d27-a5c4-dddaca67cedf@joeconway.com> Comments: In-reply-to Joe Conway message dated "Wed, 06 Dec 2023 11:19:19 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1110314.1701879995.1@sss.pgh.pa.us> Date: Wed, 06 Dec 2023 11:26:35 -0500 Message-ID: <1110315.1701879995@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Joe Conway 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