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 1rWuFw-007lt6-UI for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Feb 2024 08:23:09 +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 1rWuFv-00ByFn-8y for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Feb 2024 08:23:07 +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 1rWuFu-00ByFe-Vd for pgsql-hackers@lists.postgresql.org; Mon, 05 Feb 2024 08:23:06 +0000 Received: from ml.sraoss.co.jp ([66.11.59.17]) by magus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rWuFq-005Y1m-FS for pgsql-hackers@lists.postgresql.org; Mon, 05 Feb 2024 08:23:05 +0000 Received: from sranhm.sraoss.co.jp (unknown [192.168.174.164]) by osspc26.sraoss.co.jp (Postfix) with ESMTP id 669DA2F00094; Mon, 5 Feb 2024 17:22:56 +0900 (JST) Received: from yugon-CFSV7-1 (unknown [192.168.176.16]) by sranhm.sraoss.co.jp (Postfix) with SMTP id 4FA89341784; Mon, 5 Feb 2024 17:22:56 +0900 (JST) Date: Mon, 5 Feb 2024 17:22:56 +0900 From: Yugo NAGATA To: torikoshia Cc: jian he , "David G. Johnston" , PostgreSQL Hackers Subject: Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row Message-Id: <20240205172256.0942c4e8b757fc6f7c4dbfa8@sraoss.co.jp> In-Reply-To: <04bf425ad1b15a4daefe96c478a5253b@oss.nttdata.com> References: <20240129172858.ccb6c77c3be95a295e2b2b44@sraoss.co.jp> <04bf425ad1b15a4daefe96c478a5253b@oss.nttdata.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 05 Feb 2024 11:28:59 +0900 torikoshia wrote: > > Based on this, I've made a patch. > > based on COPY Synopsis: ON_ERROR 'error_action' > > on_error 'null', the keyword NULL should be single quoted. > > As you mentioned, single quotation seems a little odd.. > > I'm not sure what is the best name and syntax for this feature, but > since current error_action are verbs('stop' and 'ignore'), I feel 'null' > might not be appropriate. I am not in favour of using 'null' either, so I suggested to use "set_to_null" or more generic syntax like "set_to (col, val)" in my previous post[1], although I'm not convinced what is the best either. [1] https://www.postgresql.org/message-id/20240129172858.ccb6c77c3be95a295e2b2b44%40sraoss.co.jp Regards, Yugo Nagata -- Yugo NAGATA