pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Haifeng Liu <liuhaifeng@live.com>
To: pgsql-jdbc@postgresql.org
Subject: Fwd: [ADMIN] Confuse about the behaveior of PreparedStatement.executeBatch (jdbc)
Date: Fri, 14 Dec 2012 11:29:25 +0800
Message-ID: <BLU0-SMTP23378AE609963CCB543ED38B94D0@phx.gbl> (raw)
References: <BLU0-SMTP1143B3C57133A122263A47AB94E0@phx.gbl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>



Begin forwarded message:

> 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
> To: "pgsql-admin@postgresql.org" <pgsql-admin@postgresql.org>
> 
> 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.postgresql.org/mailpref/pgsql-admin
> 

view thread (9+ messages)  latest in thread

Message-ID: <BLU0-SMTP23378AE609963CCB543ED38B94D0@phx.gbl>
Permalink:  ../BLU0-SMTP23378AE609963CCB543ED38B94D0@phx.gbl/
Also on:    postgresql.org/message-id/BLU0-SMTP23378AE609963CCB543ED38B94D0@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: liuhaifeng@live.com, pgsql-jdbc@postgresql.org
  Subject: Re: Fwd: [ADMIN] Confuse about the behaveior of PreparedStatement.executeBatch (jdbc)
  In-Reply-To: <BLU0-SMTP23378AE609963CCB543ED38B94D0@phx.gbl>
  References: <BLU0-SMTP1143B3C57133A122263A47AB94E0@phx.gbl> <BLU0-SMTP23378AE609963CCB543ED38B94D0@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox