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 1toPkD-00AQsM-Qm for pgsql-general@arkaria.postgresql.org; Sat, 01 Mar 2025 16:31:19 +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 1toPkD-00GcW6-GZ for pgsql-general@arkaria.postgresql.org; Sat, 01 Mar 2025 16:31:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1toPkC-00GcVy-CQ for pgsql-general@lists.postgresql.org; Sat, 01 Mar 2025 16:31:15 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1toPk7-000NC2-0W for pgsql-general@lists.postgresql.org; Sat, 01 Mar 2025 16:31:13 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id B11D8114006F; Sat, 1 Mar 2025 11:31:09 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sat, 01 Mar 2025 11:31:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=1740846669; x=1740933069; bh=2Ykt9G5wzrv+osKkRCTUP2HmeOWSKs5M6DPo5h93oDU=; b= gEF+Dhb7Qdqe1phCqeJjDFLigFgrPaN6O1L+n/X8wzXjAwGJaqm7lGODZjY/iaMX hhMNRHCvgR5tKkuSLF+oXYjkw7efPh8flQb3shqWtD/wXKzZo64o/fCEwrHkXQto kbW+hMyStG6i/k+3QfHayqUBqj7+ZU5wWARVDBpwfrqleloxWIFp4Zaa7jZvT0AN HnJjfOBhKVE0LENvqzm/UXeHaWuIpgu+2OomXlv+L0bG+wwCoPEKb+NqSj7bdPXP VP3Sb2F3b2bTcgtcjNTm1FeFGJrdI49fsjIrXE1eOYv2lwhp+b1ru7bdWI/CqwoY CB/Puo/h+qsOQ57Tyo5GYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1740846669; x=1740933069; bh=2 Ykt9G5wzrv+osKkRCTUP2HmeOWSKs5M6DPo5h93oDU=; b=qWdG123bVnosDDzx4 EVogY2IwBdI1bgeGKhmjL7w8B6qZJ7b9BtCPUQ8+eHEIQV3OwPmo6FHO9PIroXQL rzCkeSpmBFOywSGuaL+AnRZLBR/3VVWaIKk2xDTYV5xSxZLylOMIXqdZGmGvgbme 4r/2BgTxhrg+WJazXz7bWM+RaKG4t8HQi6+3tbe5RBT25zqUMdDU6PqgEBukMUFp GvnZ1v+OgZl9QHROzs+Q3kOfsVTNzVzu0koJXlJ9dANRKryv9xpgykdSEed3dECf h4QM1f+BRIkp7mVKV8CxdQQwDNpQzpsda583xnbllCLUhesY0Tm7oJ+rId3hJsDG jH0zw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelfeejjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtff homhgrihhnucdlgeelmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepudeufeejudeifeetfefg geelheefgeekheffleegfeevjeefteetieelteelheeunecuffhomhgrihhnpehgihhthh husgdrihhopdhpghhlohgruggvrhdrihhonecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrh drtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepshhnrddufeeiudesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvg hnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Mar 2025 11:31:08 -0500 (EST) Message-ID: Date: Sat, 1 Mar 2025 08:31:08 -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 , pgsql-general@lists.postgresql.org References: 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/1/25 07:18, me nefcanto wrote: > Hello > > > All of these scenarios are such that data sanitation is difficult if not > possible before doing the bulk operation (copy). > > I realized that when we specify `on_error ignore` it just handles a > handful of errors. I thought this was a bug and sent an email to the > pgsql-bugs maling list. But they said it's the intended behavior. > Take a look at: http://ossc-db.github.io/pg_bulkload/index.html and https://pgloader.io/ They may be able to meet your needs. > > Regards > Saeed -- Adrian Klaver adrian.klaver@aklaver.com