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 1rAu4j-008exF-5f for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Dec 2023 15:44:37 +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 1rAu4h-00AZc9-Iv for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Dec 2023 15:44:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAu4h-00AZao-9P for pgsql-hackers@lists.postgresql.org; Wed, 06 Dec 2023 15:44:35 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAu4e-00APVx-VN for pgsql-hackers@postgresql.org; Wed, 06 Dec 2023 15:44:34 +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 3B6FiJdC1104916; Wed, 6 Dec 2023 10:44:19 -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: References: <41dcba92-1075-e5e5-cb99-36711abf6cec@dunslane.net> <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> Comments: In-reply-to Joe Conway message dated "Wed, 06 Dec 2023 08:49:13 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1104914.1701877459.1@sss.pgh.pa.us> Date: Wed, 06 Dec 2023 10:44:19 -0500 Message-ID: <1104915.1701877459@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Joe Conway writes: > I believe this is ready to commit unless there are further comments or > objections. I thought we were still mostly at proof-of-concept stage? In particular, has anyone done any performance testing? I'm concerned about that because composite_to_json() has zero capability to cache any metadata across calls, meaning there is going to be a large amount of duplicated work per row. regards, tom lane