pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lezzlee <lkereszt@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC executeBatch() hangs without error
Date: Tue, 11 Feb 2014 02:30:44 -0800 (PST)
Message-ID: <1392114644646-5791393.post@n5.nabble.com> (raw)
In-Reply-To: <1380201441852-5772465.post@n5.nabble.com>
References: <1380201441852-5772465.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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.

view thread (8+ messages)

Message-ID: <1392114644646-5791393.post@n5.nabble.com>
Permalink:  ../1392114644646-5791393.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1392114644646-5791393.post@n5.nabble.com

 · 

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-jdbc@postgresql.org
  Cc: lkereszt@gmail.com
  Subject: Re: JDBC executeBatch() hangs without error
  In-Reply-To: <1392114644646-5791393.post@n5.nabble.com>
  References: <1380201441852-5772465.post@n5.nabble.com> <1392114644646-5791393.post@n5.nabble.com>

* 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