X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B80959F931E for ; Tue, 9 May 2006 17:39:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 21068-05 for ; Tue, 9 May 2006 17:39:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by postgresql.org (Postfix) with ESMTP id 616E09F9C9E for ; Tue, 9 May 2006 17:39:07 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id b29so1825607pya for ; Tue, 09 May 2006 13:39:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:sender; b=SzsltZPXnTf53os/lmXrX2Wo6/+N9Y6eLP3PinYC7ab8JvRpIO6Og5Zm8mwd7YGRZm/IkAa1b8cyouMTg//B3tf5oWV/SV+SOX6QjA6FXTtaq6UzCVcFsB/gTlWKbmjyo08inEXYGve+eTShCo5cgfPvbaSUwKIKbduYAXJJueI= Received: by 10.35.113.12 with SMTP id q12mr2119880pym; Tue, 09 May 2006 13:39:06 -0700 (PDT) Received: from ?172.24.51.72? ( [129.176.197.15]) by mx.gmail.com with ESMTP id d13sm843245pyd.2006.05.09.13.39.06; Tue, 09 May 2006 13:39:06 -0700 (PDT) Message-ID: <4460FDE9.9040600@comcast.net> Date: Tue, 09 May 2006 15:39:05 -0500 From: Daniel Armbrust User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Problem dropping a table Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/20 X-Sequence-Number: 15148 I have a java application that is trying to dynamically drop a set of tables. Problem is, when it gets to a particular table and I execute the "drop table foo cascade" command from a prepared statement, the query never returns. It just hangs indefinitely. I presume that it is waiting on a lock for this table, but there is nothing that I know of that should be locking this table. So, I have two issues - the first, how do I prevent myself from hanging indefinitely? I tried 'setQueryTimeout' on the prepared statement, but it doesn't seem to have any effect. Still hangs indefinitely. Is setQueryTimeout implemented in the driver? I first posted on the regular mailing list, and Tom answered that the server should be supporting it. The second, how can I track down what is locking this table? I presume that it is some of my code somewhere... maybe a prepared statement that I didn't get closed - but I can't find it. I've checked my code twice for any reference to this table, and every use of it is properly closing the result sets and the prepared statement. It seems like maybe the driver isn't releasing a lock when it is supposed to? Any ideas? Thanks, Dan -- ***************************** Daniel C. Armbrust Biomedical Informatics Information Services Mayo Clinic Rochester Harwick 8-36 (507) 538-1549 daniel.armbrust@mayo.edu *****************************