Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDAc7-0004ar-Aw for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Feb 2014 10:30:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDAc6-0004RJ-Qu for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Feb 2014 10:30:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDAc4-0004R8-RQ for pgsql-jdbc@postgresql.org; Tue, 11 Feb 2014 10:30:48 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDAc1-0001bs-Mt for pgsql-jdbc@postgresql.org; Tue, 11 Feb 2014 10:30:47 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WDAc0-0005On-LU for pgsql-jdbc@postgresql.org; Tue, 11 Feb 2014 02:30:44 -0800 Date: Tue, 11 Feb 2014 02:30:44 -0800 (PST) From: Lezzlee To: pgsql-jdbc@postgresql.org Message-ID: <1392114644646-5791393.post@n5.nabble.com> In-Reply-To: <1380201441852-5772465.post@n5.nabble.com> References: <1380201441852-5772465.post@n5.nabble.com> Subject: Re: JDBC executeBatch() hangs without error MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_314687_8488065.1392114644648" X-Pg-Spam-Score: 3.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 ------=_Part_314687_8488065.1392114644648 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,we found that *operations affecting triggers require exclisive lock on the related tables*.We got FE=>Sync hang up problem and looked exactly like you described here. It should not be a network issue. It can be reproduced on both windows and linux platforms. However, our script was dropping and (re)creating triggers and not a batch insert that you reported here earlier.The solution was to * *close the current connection* to postgres* establish a new one and run the script to modify the triggers* at the end *commit and close the connection** establsih a new connection to continue the work.I post our solution here because this is the most recent thread on this topic which I've found. I hope this can help others with this magic connection hang.Cheers,L -- View this message in context: http://postgresql.1045698.n5.nabble.com/JDBC-executeBatch-hangs-without-error-tp5772465p5791393.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. ------=_Part_314687_8488065.1392114644648 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, we found that operations affecting triggers require exclisive lock on the related tables. We got FE=>Sync hang up problem and looked exactly like you described here. It should not be a network issue. It can be reproduced on both windows and linux platforms. However, our script was dropping and (re)creating triggers and not a batch insert that you reported here earlier. The solution was to * close the current connection to postgres * establish a new one and run the script to modify the triggers * at the end commit and close the connection * establsih a new connection to continue the work. I post our solution here because this is the most recent thread on this topic which I've found. I hope this can help others with this magic connection hang. Cheers, L

View this message in context: Re: JDBC executeBatch() hangs without error
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
------=_Part_314687_8488065.1392114644648--