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 7EAB152854 for ; Mon, 6 Jun 2005 10:47:07 -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 78702-10 for ; Mon, 6 Jun 2005 13:46:58 +0000 (GMT) Received: from alphenpdc.alphen (unknown [196.14.133.190]) by svr1.postgresql.org (Postfix) with ESMTP id A172B52862 for ; Mon, 6 Jun 2005 10:46:56 -0300 (ADT) Received: by ALPHENPDC with Internet Mail Service (5.5.2653.19) id <11W38KL5>; Mon, 6 Jun 2005 15:38:21 +0200 Message-ID: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC> From: Carl Olivier To: pgsql-jdbc@postgresql.org Subject: DatabaseMetaData and Transactions Date: Mon, 6 Jun 2005 15:38:16 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.492 tagged_above=0 required=5 tests=DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200506/14 X-Sequence-Number: 12976 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