Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F2DB113364DE for ; Thu, 31 Mar 2011 18:34:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 31397-01-3 for ; Thu, 31 Mar 2011 21:34:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from web33201.mail.mud.yahoo.com (web33201.mail.mud.yahoo.com [209.191.69.149]) by mail.postgresql.org (Postfix) with SMTP id DE35F1337BC8 for ; Thu, 31 Mar 2011 18:34:25 -0300 (ADT) Received: (qmail 5760 invoked by uid 60001); 31 Mar 2011 21:34:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1301607264; bh=Pp8OgtodGwEUyQ67PVwK84V4WzMHCTCd7RbHO67v/G4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=X+0Aj9eHQ16VeLbbOG+v+qVE1wCEiIHFawBHTmq1Lu0DpSUft2Z0nPUODBuBnMvUlc0sDmktCehoFCgviTwBgtL4Zh+y5UUyGWTKRIAMC2qnW4Qy8GTR0O7yF8Sb1Ejt5WSeVMc2LEH9/V98YVxXAHdC+qKtBLGfLW/8xvYA7D4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JhRUgYesWp+RqKWM6L79H1SABTULNFKgDLGTyJADcQ6aR6wvv/bopQS7SOnM8hh1URkeBz5zriQIiIgOVydge4snxZ0KC+qnGRc6mx1kuVPb9YBn5xISPIUMfxOHk9r89ZJ98h+AXY1jh5XUod0PaVKdxouNCqnBBkUar59IWoo=; Message-ID: <456773.73335.qm@web33201.mail.mud.yahoo.com> X-YMail-OSG: 6lXSGHMVM1l4QqDpzK54X4.FB5VwPf3_OGBXHCPAEPdOkd1 k9_BYgRTgbhtpHsSnLm0rAjk.7ioLf_JbuLeKTJIP9Kc4pBGAB9dolbV50T4 209mE0d95mYS9wh3ZRIp6W.g33_bdxW78XMAlpWtXdi3QkUnaFsaUZ92Ar0u Qm6kLVDntTWEOmAubwytya6yoJIcTYTw4Zz_QKAJkTiv1am8AacdY.068OMY L66j4eHywL19_ZU667wRHvq2I.TstHQWuzo2eMns0XTp.SKh6gQ2fE5S.OHh gEAhefA064uDx35CXspQ5kA.78_F1j3hcgog.2qWNAFR581Ag6zRHL.evp0B Uz6vdxhXhjze7lrEoYWHQmhtw8L1PotxquuiF02I7BeubYUX0DgIuTbFufgM cJ_Ks1BQk5KjE Received: from [199.84.5.210] by web33201.mail.mud.yahoo.com via HTTP; Thu, 31 Mar 2011 14:34:24 PDT X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Thu, 31 Mar 2011 14:34:24 -0700 (PDT) From: Quartz Subject: Re: JDBC gripe list (the autocommit subthread) To: Kevin Grittner Cc: pgsql-jdbc@postgresql.org In-Reply-To: <4D945B75020000250003BFF6@gw.wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/163 X-Sequence-Number: 21718 > I'm coming around to the position that we shouldn't tinker=0A> with=0A> a= utoCommit within the executeBatch method.=A0 I still=0A> think it would=0A>= be best for us to consistently bail out on the first=0A> failure, but if= =0A> autoCommit is on, we could build the BatchUpdateException=0A> using an= =0A> array of the length of the successfully completed=0A> statements.=A0 I= f=0A> autoCommit is off, I'm not sure whether it would be better=0A> to lea= ve=0A> the updateCounts property null or use a zero length array;=0A> but= =0A> clearly no statements should be considered successful.=0A> =0A> The A= PI documentation does seem to suggest it should work=0A> that way.=0A> =0A= > The bad news is that this would be a behavior change, and=0A> could thus= =0A> break existing code for current PostgreSQL users.=A0=0A> When that's t= he=0A> case, we generally like to see a reasonable use case for=0A> the new= =0A> behavior even when it is standard.=A0 So far we have a=0A> rather=0A> = hand-wavy assertion that it would be useful for logging and=0A> "an=0A> inf= inite number of" other uses.=A0 It would probably=0A> help sway the=0A> com= munity if there was a more concrete explanation of why=0A> this was=0A> bet= ter than the alternatives for logging purposes, and to=0A> sketch out=0A> o= ne or two of the other infinite number of use cases.=0A=0A=0AYou have been = defending all that long that most use the autocommit=3Dfalse when using bat= ches. Then they won't break....!=0A=0ABesides that's what release notes are= for. And I dare say, if they expected a transaction when using a batch wit= h autocommit=3Dtrue, it about time they learn their mistake. JDBC api is a = contract. Can't make exception for postgres.=0A