Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aX7NC-0002lm-WA for pgsql-jdbc@arkaria.postgresql.org; Sat, 20 Feb 2016 13:14:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aX7NC-0004MY-Iw for pgsql-jdbc@arkaria.postgresql.org; Sat, 20 Feb 2016 13:14:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aX7NB-0004LC-Pu for pgsql-jdbc@postgresql.org; Sat, 20 Feb 2016 13:14:57 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aX7N7-0007iG-BT for pgsql-jdbc@postgresql.org; Sat, 20 Feb 2016 13:14:57 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aX7N5-0006bu-4y for pgsql-jdbc@postgresql.org; Sat, 20 Feb 2016 14:14:51 +0100 Received: from ppp-46-244-205-114.dynamic.mnet-online.de ([46.244.205.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Feb 2016 14:14:51 +0100 Received: from spam_eater by ppp-46-244-205-114.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Feb 2016 14:14:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: JDBC behaviour Date: Sat, 20 Feb 2016 14:14:36 +0100 Lines: 17 Message-ID: References: <954cc530fdaf2c5cf63dcb180d05fb56@imap.procolix.com> <4C508581-9CA3-490D-A376-CC1F9FF5D258@me.com> <56C8487F.7020406@hogranch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-46-244-205-114.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <56C8487F.7020406@hogranch.com> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org John R Pierce schrieb am 20.02.2016 um 12:05: > near as I can tell, the OP has used some sort of SQL (unspecified) where multiple inserts >within a transaction are individually inserted, regardless of one failing. At least Oracle does it this way (and I think DB2 as well). Oracle gets really slow if you do a row-by-row commit with large inserts. That's why most people don't use auto-commit and just ignore any errors during inserts for batch loads. > to me this seems to break the rules of transaction semantics I agree, the expected behaviour from the OP does violate the A in the ACID principle, but apparently it's popular enough that people think the correct behaviour is a bug: http://dba.stackexchange.com/a/129822/1822 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc