Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VPFgN-0008T5-Ds for pgsql-jdbc@arkaria.postgresql.org; Thu, 26 Sep 2013 17:48:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VPFgM-0008CO-UC for pgsql-jdbc@arkaria.postgresql.org; Thu, 26 Sep 2013 17:48:54 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VPFgL-0008CH-SF for pgsql-jdbc@postgresql.org; Thu, 26 Sep 2013 17:48:54 +0000 Received: from mail63.csoft.net ([205.205.214.4]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VPFfa-0003j4-9K for pgsql-jdbc@postgresql.org; Thu, 26 Sep 2013 17:48:53 +0000 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 94B0328446; Thu, 26 Sep 2013 12:48:03 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id 7F3E1A154; Thu, 26 Sep 2013 13:48:03 -0400 (EDT) Date: Thu, 26 Sep 2013 13:48:03 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Kevin Wooten cc: "Vinay S (vinas)" , Dave Cramer , List Subject: Re: JDBC executeBatch() hangs without error In-Reply-To: Message-ID: References: <1380201441852-5772465.post@n5.nabble.com> <3D2CB312427D204EAC2BCEB9771CB1951E3F50A8@xmb-aln-x01.cisco.com> <3D2CB312427D204EAC2BCEB9771CB1951E3F5126@xmb-aln-x01.cisco.com> User-Agent: Alpine 2.03 (BSO 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Pg-Spam-Score: -2.4 (--) 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 On Thu, 26 Sep 2013, Kevin Wooten wrote: > Could this be related to the note in QueryExecutorImpl.java ~ line 287 > titled "Deadlock Avoidance"? > If I remember correctly it's specifically related to batched queries and > synchronous TCP. Almost certainly. The thing to look at is setting the network buffer sizes to use to large values to avoid the deadlock. The default values are machine dependent which also explains it working or not on different machines. These are unfortunately not documented, but were introduced in this commit: https://github.com/pgjdbc/pgjdbc/commit/4e7f65b91e95d6249c78de6944f09cd34ef1ae87 Kris Jurka -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc