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 1rhksB-00DD0O-5C for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2024 06:35:27 +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 1rhkrB-005zXj-8f for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2024 06:34:25 +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 1rhkrA-005zUC-Um for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2024 06:34:25 +0000 Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rhkr8-0032Aj-KO for pgsql-hackers@postgresql.org; Wed, 06 Mar 2024 06:34:24 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 8081918000A3; Wed, 6 Mar 2024 01:34:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 06 Mar 2024 01:34:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1709706859; x=1709793259; bh=a6i77+Ioid bgCen4IJDmPoyOzkEXd5EnVVmIDYa4WlI=; b=gb7qQEl6R+gldIa9awYDpeY7Fk 5a4MEuTkxOqakylTWDIHg0eVsLMd/RvderotdWYiEgygYu3SRqdf83j/hrchykkB b/MSHyPNUtyjp0b+7kelO55yjP3gr+jU7goU1yidXpL2PgXPU1jYFtw8TIz4oMty EhZ+qDrPcviCEt5zcJ/XZ25MqK7RJB8QTUKBeBdIRLo/ct+z+iGcpXiSaoH8y+h2 vBSp4DQ3RiesjUE7qe9KlyObixu73pJq3Ub3WDgiEnsoNWDEAtWQ+ONnO+lIcVVs MWe3X81r/nQ+FBvsN1hIr26Sww2UR3A+s5u5Xrpvwg7OdvlHSamzZhgCFXFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1709706859; x=1709793259; bh=a6i77+IoidbgCen4IJDmPoyOzkEX d5EnVVmIDYa4WlI=; b=dYdFuczLi4y2jSsVNG8FslCGmg0nWzZRZB5lpuiRXo4t +CzRBcksiW04n5xa+FQZGC0J6i1itwiA8wfinL1id+A0/uDHBvIZyiJ0FNoMlhve ZP003n5i8lxa15RngwUTUGDJ5tOC0XUX877YMchP1KjjkSKrl72YIP8bTcyomEKx DvwNKV8fw+VI3/RU//UF4G7k/jPaQPSxFeYIxpZq4t6CIWxLqQvIcbwqJ5cVU0z0 vNTz1JvS/G3pQ0Qv1BZTbGmLvACYiuFtS7xUGIvzbyc8kSooETzMjgOSjZuKVwEB ti8De86Cv8XOwh3fPtfQK2axEIYy9JQkKDJ0/1C1SA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedtgdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf evuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpeetleeifedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthh grvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Mar 2024 01:34:16 -0500 (EST) Date: Wed, 6 Mar 2024 15:34:04 +0900 From: Michael Paquier To: Sutou Kouhei Cc: andres@anarazel.de, sawada.mshk@gmail.com, zhjwpku@gmail.com, andrew@dunslane.net, nathandbossart@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Make COPY format extendable: Extract COPY TO format implementations Message-ID: References: <20240301.154443.618034282613922707.kou@clear-code.com> <20240304.141108.377465274442209834.kou@clear-code.com> <20240305.171808.667980402249336456.kou@clear-code.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="z557axbRyB4qDj8b" Content-Disposition: inline In-Reply-To: <20240305.171808.667980402249336456.kou@clear-code.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --z557axbRyB4qDj8b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 05, 2024 at 05:18:08PM +0900, Sutou Kouhei wrote: > I'll send the following patches after this patch is > merged. I am not sure that my schedule is on track to allow that for this release, unfortunately, especially with all the other items to review and discuss to make this thread feature-complete. There should be a bit more than four weeks until the feature freeze (date not set in stone, should be around the 8th of April AoE), but I have less than the half due to personal issues. Perhaps if somebody jumps on this thread, that will be possible.. > They are based on the v6 patch[1]: >=20 > 1. Add copy_handler > * This also adds a pg_proc lookup for custom FORMAT > * This also adds a test for copy_handler > 2. Export CopyToStateData > * We need it to implement custom copy TO handler > 3. Add needed APIs to implement custom copy TO handler > * Add CopyToStateData::opaque > * Export CopySendEndOfRow() > 4. Export CopyFromStateData > * We need it to implement custom copy FROM handler > 5. Add needed APIs to implement custom copy FROM handler > * Add CopyFromStateData::opaque > * Export CopyReadBinaryData() Hmm. Sounds like a good plan for a split. -- Michael --z557axbRyB4qDj8b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmXoDlwACgkQnvQgOdby QH0klg/+JsJhP5f1zMFrPnIOBa7X3LT4SvDycWOai9kaSRCjhAdZSaKZC1kzEzBS 9aCIoYUx44BrTQxE3GkFI2l3M6xAOSqU2nQUd7qJiROYV+YaauucETsPW7H0KMLx NtxQJjJRhcwG/CcRo/iffCnMlwEpuP7V1hMX7Lph3OXnlDCWTYzyJA98aTQWMINU lu4ynAFUo8QGyqlHDEwk9ehJfv8J2DSc423ouq51y9NV8NIMxPrOW7Y0s13aYzPl nBwwjmbOccI/sfptuRjCVQo2xTWAPxWulxf1PShCWdmW+Qp8KpxyvxPhlEtasUDn H9e/m/0oWrrRuOpEZYYanNxVo3qff13IHd/HlT05K6Fdxuzmo8q7UdX3fRP8dSDx EKV3x2Q6A1F/ea/aSdixCGQzYXOaj7TMbKMbVERgTSLI0vaN/yHnLHJgqIzN5mhP XrHdtDQa0D6p+bMHfQ50+DSO+M8rLME2P58i88WChuxv/RE4ExU+9vyDCF3n/pVc mC74PYyghKP0xPxXUcbGyUpRq96rY7jlJ7hp2tzLKR+zs7HV1JkAt6BIvOYxou35 ComTm7HD0W7XAq4A2Nk1zeSxD2yweDCv+nTW9nqPLrKisNuqRQ8bg1ddZyuxiI9R hixdDjmA4XTn1l6SlP5WdmEsYHQDTXs0wNOEwzcuAdJECbe3s6k= =SImm -----END PGP SIGNATURE----- --z557axbRyB4qDj8b--