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 1toPZb-00AOd1-B6 for pgsql-general@arkaria.postgresql.org; Sat, 01 Mar 2025 16:20:20 +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 1toPZa-00GNkx-Kp for pgsql-general@arkaria.postgresql.org; Sat, 01 Mar 2025 16:20:17 +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 1toPZa-00GNko-9q for pgsql-general@lists.postgresql.org; Sat, 01 Mar 2025 16:20:16 +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.96) (envelope-from ) id 1toPZV-000NVI-0T for pgsql-general@lists.postgresql.org; Sat, 01 Mar 2025 16:20:16 +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 521GKC6B2961423; Sat, 1 Mar 2025 11:20:12 -0500 From: Tom Lane To: me nefcanto cc: pgsql-general@lists.postgresql.org Subject: Re: Please implement a catch-all error handler per row, for COPY In-reply-to: References: Comments: In-reply-to me nefcanto message dated "Sat, 01 Mar 2025 18:48:41 +0330" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2961421.1740846012.1@sss.pgh.pa.us> Date: Sat, 01 Mar 2025 11:20:12 -0500 Message-ID: <2961422.1740846012@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk me nefcanto writes: > Can you please provide a row-level catch-all handler for the copy command? Very unlikely to happen. COPY is not intended as a general purpose ETL mechanism, and we don't want to load it down with features that would create substantial performance penalties. Which that would. Even ignoring the performance angle, this request seems remarkably ill-specified. What is a "row-level handler" for errors that have to do with identifying row boundaries? regards, tom lane