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 865939FA1B0 for ; Wed, 10 May 2006 11:44:08 -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 04070-09 for ; Wed, 10 May 2006 11:43:49 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by postgresql.org (Postfix) with ESMTP id B48EE9FA3A6 for ; Wed, 10 May 2006 11:43:38 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id c63so2027625pyc for ; Wed, 10 May 2006 07:43:36 -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:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=AW6Y9bvHlE93uk/dnYmfKAte+dJQBp5sSEyM84NJR53OvbIdcljc9wwgoUtUIBptb9Y4LK7OlUmcN3/oNniKBiNSTQ08ZP7WcOOp27iqWM4qOV320pBZzLDGKyYd3KdpOl9S8Upphb3mPH7dHOJniZpvmdq/ZBgZIHko3iuOG2Q= Received: by 10.35.97.17 with SMTP id z17mr45912pyl; Wed, 10 May 2006 07:43:36 -0700 (PDT) Received: from ?172.24.51.72? ( [129.176.197.15]) by mx.gmail.com with ESMTP id w28sm355149pyc.2006.05.10.07.43.36; Wed, 10 May 2006 07:43:36 -0700 (PDT) Message-ID: <4461FC17.5080400@gmail.com> Date: Wed, 10 May 2006 09:43:35 -0500 From: Dan Armbrust User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Oliver Jowett CC: pgsql-jdbc@postgresql.org Subject: Re: Problem dropping a table References: <4460FDE9.9040600@comcast.net> <446142D8.10207@opencloud.com> In-Reply-To: <446142D8.10207@opencloud.com> 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/29 X-Sequence-Number: 15157 Oliver Jowett wrote: > > Merely having a prepared statement or resultset referencing the table > does not hold locks. The only thing that holds locks (AFAIK) is an open > transaction that did something requiring a lock. So perhaps you have an > open transaction on another connection that used the table but has not > yet called commit()/rollback(), or you have a concurrently executing > query that holds the lock? > > -O > Well, thats good (but utterly confusing to me) to know... I'm not running any transactions, and nothing else is going on concurrently that I'm aware of. But it gives me a new direction to go hunting in. I've certainly spent enough time checking for unclosed resultsets and prepared statements. I know that the lock is being held by my code, I just don't know where. Funny thing is, this code is written to work on multiple databases - and I don't have any issues at all on DB2, MySQL, Oracle, MSAccess, or Hypersonic DB. Just Postgres, in this one set of queries. Which is starting to make me think I've uncovered a driver bug... I'm going to spend more time today trying to figure out which exact query of mine is establishing the lock. Dan -- **************************** Daniel Armbrust Biomedical Informatics Mayo Clinic Rochester daniel.armbrust(at)mayo.edu http://informatics.mayo.edu/