pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carl Olivier <carl@zero-one.co.za>
To: pgsql-jdbc@postgresql.org
Subject: DatabaseMetaData and Transactions
Date: Mon, 6 Jun 2005 15:38:16 +0200
Message-ID: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC> (raw)

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



view thread (9+ messages)  latest in thread

Message-ID: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC>
Permalink:  ../473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC/
Also on:    postgresql.org/message-id/473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: carl@zero-one.co.za
  Subject: Re: DatabaseMetaData and Transactions
  In-Reply-To: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC>
  References: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox