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 1uwrKp-0086J6-ME for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Sep 2025 00:08:16 +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 1uwrKm-00AYx7-H2 for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Sep 2025 00:08:12 +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 1uwrKm-00AYwr-6s for pgsql-hackers@lists.postgresql.org; Fri, 12 Sep 2025 00:08:12 +0000 Received: from mail.clear-code.com ([153.126.203.179]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uwrKg-000HQI-0n for pgsql-hackers@postgresql.org; Fri, 12 Sep 2025 00:08:11 +0000 Received: from localhost (unknown [IPv6:2404:7a80:9f01:f500:1788:74de:dc85:ea72]) by mail.clear-code.com (Postfix) with ESMTPSA id B3A38587B70; Fri, 12 Sep 2025 09:07:54 +0900 (JST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.clear-code.com B3A38587B70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clear-code.com; s=default; t=1757635674; bh=2VpSVByuiBdp8La+9yndIcoBLcOFo0GcsC8tnvPgrVg=; h=Date:To:Cc:Subject:From:In-Reply-To:References:From; b=pNOMqi3ifYD/UTZn4tiP9zRs33WjW//ZtH6kX34BNuG5rggxt/eCbns0xlCZtU1HB FNAmCAUpJlHugHe52q8L45aBh8LeBj6zKsaWAoMCf2zBP3wQF+gzOYE+i1rkTkHmcO GQ/Xp8WZdo1qiVoL34t5QH0HzNLTrIuEhMePc+LA= Date: Fri, 12 Sep 2025 09:07:52 +0900 (JST) Message-Id: <20250912.090752.1203629851019356408.kou@clear-code.com> To: sawada.mshk@gmail.com Cc: michael@paquier.xyz, david.g.johnston@gmail.com, tgl@sss.pgh.pa.us, zhjwpku@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Make COPY format extendable: Extract COPY TO format implementations From: Sutou Kouhei In-Reply-To: References: <20250911.144627.1367548062212866518.kou@clear-code.com> X-Mailer: Mew version 6.8 on Emacs 30.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [2.90 / 999.00]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; ARC_NA(0.00)[]; ASN(0.00)[asn:2518, ipnet:2404:7a80::/29, country:JP]; TAGGED_RCPT(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ZERO(0.00)[0]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; FREEMAIL_CC(0.00)[paquier.xyz,gmail.com,sss.pgh.pa.us,postgresql.org]; FROM_HAS_DN(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_FIVE(0.00)[6] X-Rspamd-Server: mail.clear-code.com X-Rspamd-Action: no action X-Rspamd-Queue-Id: B3A38587B70 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, In "Re: Make COPY format extendable: Extract COPY TO format implementations" on Thu, 11 Sep 2025 13:41:26 -0700, Masahiko Sawada wrote: > I think we can use a local variable of CopyFormatOptions and memcpy it > to the opts of the returned cstate. It'll work too. Can we proceed this proposal with this approach? Should we collect more opinions before we proceed? If so, Could you add key people in this area to Cc to hear their opinions? Thanks, -- kou