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 69AF1528C5 for ; Mon, 6 Jun 2005 11:23:15 -0300 (ADT) 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 90388-05 for ; Mon, 6 Jun 2005 14:23:13 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id ED960528E0 for ; Mon, 6 Jun 2005 11:23:12 -0300 (ADT) Received: (qmail 23168 invoked from network); 6 Jun 2005 14:21:28 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (64.7.143.116) by net2.micro-automation.com with SMTP; 6 Jun 2005 14:21:28 -0000 In-Reply-To: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC> References: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: DatabaseMetaData and Transactions Date: Mon, 6 Jun 2005 10:23:12 -0400 To: Carl Olivier X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/15 X-Sequence-Number: 12977 Carl, One of the queries is failing, have a look at the logs in postgres and report back to us what is failing. Dave On 6-Jun-05, at 9:38 AM, Carl Olivier wrote: > Greetings. > > Having a problem with regards DatabaseMetaData retrievals within a > Transaction. I have a large transaction running - within which > database > alterations need to occur. However, during this process I need to > retrieve > Table metadata (via the DatabaseMetaData.getTables() method). > However, this > does not seem possible in POSTGRES? I receive the following error: > > ERROR: current transaction is aborted, queries ignored until end of > transaction block. > > I trace that directly to a call to the getTables method of the > DatabaseMetaData implementation. > > Can anyone provide me with any advice here? Is this correct > behaviour, and > is there any way (other than caching table metadata prior to, and > maintaining said cache during the transaction) to allow for meta data > retrieval during a transaction? > > Thanks in advance! > > Regards, > > Carl > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > >