X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B3B753A69A1 for ; Tue, 14 Dec 2004 13:33:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72853-09 for ; Tue, 14 Dec 2004 13:33:18 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 93C6A3A6859 for ; Tue, 14 Dec 2004 13:33:23 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CeCnl-00042T-00; Wed, 15 Dec 2004 02:33:17 +1300 Message-ID: <41BEED57.2090904@opencloud.com> Date: Wed, 15 Dec 2004 02:40:39 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041130) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bahadur Singh Cc: Kris Jurka , "pgsql-jdbc@postgresql.org" Subject: Re: [BUGS] BUG #1347: Bulk Import stopps after a while ( References: <20041214122627.22135.qmail@web50802.mail.yahoo.com> In-Reply-To: <20041214122627.22135.qmail@web50802.mail.yahoo.com> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/116 X-Sequence-Number: 11782 Bahadur Singh wrote: > Finally I am able to force the driver to do the DEBUG > level output on the console. > > err.zip contains Debug level output. OK, it looks like it is the connection deadlock issue, but triggered by a case I hadn't considered. For some reason every query in the batch is creating a new named statement on the backend .. and the statement cleanup process that happens before query execution is flooding statement Close commands down the connection on the second batch execution, which appears to deadlock the connection. The exact behaviour will be fairly unpredicatable as it depends on when the JVM does garbage collection. I will try to find some time to investigate this properly tomorrow. -O