Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q03Vk-0007g7-1I for pgsql-hackers@arkaria.postgresql.org; Fri, 19 May 2023 17:03:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q03Vi-0001y8-Tl for pgsql-hackers@arkaria.postgresql.org; Fri, 19 May 2023 17:03:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q03Vi-0001xz-K6 for pgsql-hackers@lists.postgresql.org; Fri, 19 May 2023 17:03:22 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q03Ve-000lMh-Sy for pgsql-hackers@lists.postgresql.org; Fri, 19 May 2023 17:03:21 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id DE2A01C0008; Fri, 19 May 2023 17:03:15 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------UtRM2HgPaqI3VP8hn0BEzETo" Message-ID: Date: Fri, 19 May 2023 13:03:14 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: Joel Jacobson , pgsql-hackers@lists.postgresql.org References: <748b7bfc-9f16-4bea-b7e1-4a59dc9354f5@app.fastmail.com> From: Andrew Dunstan Subject: Re: New COPY options: DELIMITER NONE and QUOTE NONE In-Reply-To: <748b7bfc-9f16-4bea-b7e1-4a59dc9354f5@app.fastmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------UtRM2HgPaqI3VP8hn0BEzETo Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-05-19 Fr 05:24, Joel Jacobson wrote: > > I hacked together a broken patch just to demonstrate the idea on syntax > and basic idea. The `COPY ... FROM` examples above works. > But it doesn't work at all for `COPY ... TO`, since it output \0 byte as > delimiter and quote in the output, which is of course not what we want. > > I think you've been a bit too cute with the grammar changes, but as you say this is a POC. cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------UtRM2HgPaqI3VP8hn0BEzETo Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 2023-05-19 Fr 05:24, Joel Jacobson wrote:

I hacked together a broken patch just to demonstrate the idea on syntax
and basic idea. The `COPY ... FROM` examples above works.
But it doesn't work at all for `COPY ... TO`, since it output \0 byte as
delimiter and quote in the output, which is of course not what we want.



I think you've been a bit too cute with the grammar changes, but as you say this is a POC.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------UtRM2HgPaqI3VP8hn0BEzETo--