Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjLxy-0001Il-Qh for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Dec 2012 03:29:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TjLxy-0006DJ-Bq for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Dec 2012 03:29:38 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjLxx-0006DD-EQ for pgsql-jdbc@postgresql.org; Fri, 14 Dec 2012 03:29:37 +0000 Received: from blu0-omc3-s36.blu0.hotmail.com ([65.55.116.111]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjLxv-0003lr-PB for pgsql-jdbc@postgresql.org; Fri, 14 Dec 2012 03:29:36 +0000 Received: from BLU0-SMTP233 ([65.55.116.73]) by blu0-omc3-s36.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 13 Dec 2012 19:29:34 -0800 X-EIP: [tXPT74jIWyN39eU2K41/4KP1U2jIa7db] X-Originating-Email: [liuhaifeng@live.com] Message-ID: Received: from [172.16.224.42] ([61.170.250.85]) by BLU0-SMTP233.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 13 Dec 2012 19:29:33 -0800 From: Haifeng Liu Content-Type: multipart/alternative; boundary="Apple-Mail=_FF9E1EF9-053D-47FB-B7B0-B2EAE2F44715" Subject: Fwd: [ADMIN] Confuse about the behaveior of PreparedStatement.executeBatch (jdbc) Date: Fri, 14 Dec 2012 11:29:25 +0800 References: To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-OriginalArrivalTime: 14 Dec 2012 03:29:34.0081 (UTC) FILETIME=[3C78FF10:01CDD9AB] X-Pg-Spam-Score: -1.9 (-) 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 --Apple-Mail=_FF9E1EF9-053D-47FB-B7B0-B2EAE2F44715 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Begin forwarded message: > From: Haifeng Liu > Subject: [ADMIN] Confuse about the behaveior of = PreparedStatement.executeBatch (jdbc) > Date: December 13, 2012 6:44:56 PM GMT+08:00 > To: "pgsql-admin@postgresql.org" >=20 > Hi, >=20 > I have a DB writer program written in Java, it do batch updates, and = will try to update each record in a batch if it failed. I think no any = record in a batch will be update if the batch failed, but weirdly I = found a few records update twice(very little amount among all records).=20= >=20 > Well, there is less stuff about postgresql jdbc driver. I wanna know = if executeBatch really keep all the records in a batch untouched when = the batch failed. Any help is appreciate. >=20 > --=20 > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin >=20 --Apple-Mail=_FF9E1EF9-053D-47FB-B7B0-B2EAE2F44715 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii"
From: Haifeng Liu <liuhaifeng@live.com>
=
Subject: = [ADMIN] Confuse about the behaveior of = PreparedStatement.executeBatch (jdbc)
Date: December 13, 2012 = 6:44:56 PM GMT+08:00

Hi,

I have a DB writer program = written in Java, it do batch updates, and will try to update each record = in a batch if it failed. I think no any record in a batch will be update = if the batch failed, but weirdly I found a few records update twice(very = little amount among all records).

Well, there is less stuff = about postgresql jdbc driver. I wanna know if executeBatch really keep = all the records in a batch untouched when the batch failed. Any help is = appreciate.

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)=
To make changes to your subscription:
http://www.postgre= sql.org/mailpref/pgsql-admin


= --Apple-Mail=_FF9E1EF9-053D-47FB-B7B0-B2EAE2F44715--