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 8E5C19FA2CB for ; Wed, 10 May 2006 14:36:46 -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 34189-08 for ; Wed, 10 May 2006 14:36:36 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by postgresql.org (Postfix) with ESMTP id C7A6E9FA4EA for ; Wed, 10 May 2006 14:36:30 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id c63so2090078pyc for ; Wed, 10 May 2006 10:36:29 -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:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Z3EzsHLX03nSiounCO6c9hZIPfYM1HYyYpwolf0mNM5rCYyI5c+ivLHwwcZXIs5tpmEtWzjsUkyV+QSDM3exadNaN+ZTzTHEVjqdcD+mkHh/5uXY0RdNGnl0kRxmrAsupg5cmWwlWmBc8iIYBSVruBU6kl3ljMifPsZKJMdhGzY= Received: by 10.35.81.10 with SMTP id i10mr287067pyl; Wed, 10 May 2006 10:36:29 -0700 (PDT) Received: from ?172.24.51.72? ( [129.176.197.15]) by mx.gmail.com with ESMTP id b52sm1936795pyb.2006.05.10.10.36.29; Wed, 10 May 2006 10:36:29 -0700 (PDT) Message-ID: <4462249B.6050304@gmail.com> Date: Wed, 10 May 2006 12:36:27 -0500 From: Dan Armbrust User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 CC: pgsql-jdbc@postgresql.org Subject: Re: Problem dropping a table References: <4460FDE9.9040600@comcast.net> <446142D8.10207@opencloud.com> <4461FC17.5080400@gmail.com> In-Reply-To: <4461FC17.5080400@gmail.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/32 X-Sequence-Number: 15160 Dan Armbrust wrote: > 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 >> > Thanks for your tip, I finally stopped looking in all the wrong places, and found the problem. In order to stream a large result set, I had called setAutoCommit(false) in one portion of the code. The code that was supposed to turn autocommit back on was not being called - hence, I had a transaction that was hung open. The only remaining oddity is that the open transaction was preventing me from removing a table that I never accessed in the transaction... Anyway, I finally got everything working the way it is supposed to on my end. Thanks, Dan -- **************************** Daniel Armbrust Biomedical Informatics Mayo Clinic Rochester daniel.armbrust(at)mayo.edu http://informatics.mayo.edu/