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 1khfkt-0002R5-Vt for pgsql-admin@arkaria.postgresql.org; Tue, 24 Nov 2020 21:21:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khfks-0001SR-4l for pgsql-admin@arkaria.postgresql.org; Tue, 24 Nov 2020 21:21:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khfkr-0001SK-TI for pgsql-admin@lists.postgresql.org; Tue, 24 Nov 2020 21:21:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khfkp-0005Im-JE for pgsql-admin@lists.postgresql.org; Tue, 24 Nov 2020 21:21:40 +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 0AOLLYDi310682; Tue, 24 Nov 2020 16:21:34 -0500 From: Tom Lane To: Holger Jakobs cc: pgsql-admin@lists.postgresql.org Subject: Re: ERROR : invalid transaction termination : PostgreSQL v12 In-reply-to: <783165ad-62f6-dad9-6aa9-814428e49743@jakobs.com> References: <7685663c-4fb4-2875-9164-a44007ca9568@jakobs.com> <783165ad-62f6-dad9-6aa9-814428e49743@jakobs.com> Comments: In-reply-to Holger Jakobs message dated "Tue, 24 Nov 2020 22:15:15 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <310680.1606252894.1@sss.pgh.pa.us> Date: Tue, 24 Nov 2020 16:21:34 -0500 Message-ID: <310681.1606252894@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Holger Jakobs writes: > Oracle's behaviour of saving all non-failing records while discarding > all failing records is not directly possible with PostgreSQL, because > the sense of a transaction is all-or-nothing. There are external tools that can emulate row-at-a-time loading, such as pgloader [1]. I'm not sure what sort of speed penalty you pay for that, but I imagine it's not trivial. regards, tom lane [1] https://pgloader.io