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 1tp1Pp-00H9nV-QY for pgsql-general@arkaria.postgresql.org; Mon, 03 Mar 2025 08:44:46 +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 1toySb-00FmOm-Ge for pgsql-general@arkaria.postgresql.org; Mon, 03 Mar 2025 05:35: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 1toySa-00FmOd-Lq for pgsql-general@lists.postgresql.org; Mon, 03 Mar 2025 05:35:25 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1toySW-000e1g-17 for pgsql-general@lists.postgresql.org; Mon, 03 Mar 2025 05:35:24 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id EBE8D2540100; Mon, 3 Mar 2025 00:33:08 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Mon, 03 Mar 2025 00:33:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding: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=fm3; t=1740979988; x=1741066388; bh=47RTwkYuUSo6p0kP5CcH7O7OpV2LzWVQrMfc24P47yU=; b= DDkxnjBH4lgTjyWlktH0ziqKKx2GGAvwX4RUJr/o/AwErzeZbJtbCfZJbH8rSzm9 e5etoHLzc5H9NLBqV4LJt0u67xyBkOszkOOAMHXjGkKlJPrW/o+DfgB6+Zq53xWZ WYB0qG1MJAuW6Pe6n8e20UF2cvyAAsqJ/LBWW0kt+bg21hKrxk2Pz+jYL/T4Vtv4 NdbObiBZ3pvge6Jvz4AX8SqI/fSd5RDkS+8KqLBb0P4CR0ZBlcpJTfsznV3aGUnj RRPhGGLKsByHVNJe5bkhKjngyhKaVAb4Ffhgw8oFfBAbpDz8XPM88Wfk0i42rCIy JTdDs/C9D54mxNHKR+yiXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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-sender:x-me-sender:x-sasl-enc; s=fm1; t=1740979988; x= 1741066388; bh=47RTwkYuUSo6p0kP5CcH7O7OpV2LzWVQrMfc24P47yU=; b=c qWuObxhn58HPlxjMg2z968b4lGWLhwLIS8yE7qD6LZJndf7nv6GX1IXuDe4U/XZa jWymZyf5itqCeJy+yd1+OJaXTOG0VYIOIyZPMdEX4455gsn8XoK3lrNBxMncuN5h QjtX5acXJOmbthzpjUsL32Dd1eZyULtZ6FKskj8TiNHSQrnc7OwYIpF4d4kN9cW9 b7nmBQ3WfD+rMJDvpE9S4f/Ifl2pNDvn99YgKl3bhue2vF8ZqFHQGG/+oeohuwhK bKZbSy0WoZ8YkXPNivnHEuqMZ8JjBFGHCw6XWi+Gd1hAXjvFWt884HKH6HNvfH7w XUE8x3uEXaKn1OXGYZGyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelkedvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefhveeihfevlefffedt hedukeevfefhfedtgeeifeevteffgfefhedtffetudettdenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegr khhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehsnhdrudefiedusehgmhgrihhlrdgtohhmpdhrtghpthhtohephhht rghmfhhiughssehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggrvhhiugdrghdrjhhohh hnshhtohhnsehgmhgrihhlrdgtohhmpdhrtghpthhtohepthhglhesshhsshdrphhghhdr phgrrdhushdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpoh hsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Mar 2025 00:33:07 -0500 (EST) Message-ID: <61c32ecb-8d5e-4c90-8387-6de712562222@aklaver.com> Date: Sun, 2 Mar 2025 21:33:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Please implement a catch-all error handler per row, for COPY To: me nefcanto , Greg Sabino Mullane Cc: "David G. Johnston" , Tom Lane , pgsql-general@lists.postgresql.org References: <2961422.1740846012@sss.pgh.pa.us> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/2/25 19:44, me nefcanto wrote: > Thank you all for responding. With respect, I don't understand why COPY > gets related to ETL. All of the requirements I mentioned above have > nothing to do with ETL. We have a table of categories. A hierarchical > table. This is a multitenant app. Hundreds of thousands of records are > in it. We want to calculate the hierarchical properties (nested set > models, node depth, determining leaves, materialized paths, etc.) and > then update the entire table. What does this have to do with ETL? Or as Pretty sure it defines ETL, extract data from a source, transform it to meet the properties and load it. At any rate: 1) ON_ERROR IGNORE only just appeared in Postgres 17. 2) Any further changes to it would constitute a feature change that can only happen in major version upgrade. The next major version is due this Fall and development is already well under way. The chances of it making it in given the time frame is slim, so that pushes a practicable deadline until Fall of 2026. 3) As I mentioned in a previous post there are packages already out there that may get you want you want now. -- Adrian Klaver adrian.klaver@aklaver.com