Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjZDA-0005Jg-A6 for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Dec 2012 17:38:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TjZD9-0003Tm-Jf for pgsql-jdbc@arkaria.postgresql.org; Fri, 14 Dec 2012 17:38:11 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjZD8-0003Tg-K0 for pgsql-jdbc@postgresql.org; Fri, 14 Dec 2012 17:38:10 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjZD6-0007Lp-MW for pgsql-jdbc@postgresql.org; Fri, 14 Dec 2012 17:38:09 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id 62AE95987 for ; Fri, 14 Dec 2012 10:38:08 -0700 (MST) Message-ID: <50CB6094.3000905@ttc-cmc.net> Date: Fri, 14 Dec 2012 10:23:32 -0700 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Fwd: [ADMIN] Confuse about the behaveior of PreparedStatement.executeBatch (jdbc) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.5 (/) 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 Kris Jurka Wrote: > Internally the driver splits each batch into sub-batches of 250 to send to > the server to reduce the possibility of deadlocking the network > connection. When auto-commit is enabled in the driver, the auto-commit > setting affects the whole sub-batch of 250 because of how the > frontend/backend protocol works. So you are seeing some oddities because > of some implementation details and you should not use auto-commit with > batch statements. > > Kris Jurka Direct knowledge and experience to the rescue. Thank you Kris for staying within ear shot. danap. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc