pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Carl Olivier <carl@zero-one.co.za>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: DatabaseMetaData and Transactions
Date: Mon, 6 Jun 2005 10:23:12 -0400
Message-ID: <F76A1422-9F37-4A26-9430-51071837CF3C@fastcrypt.com> (raw)
In-Reply-To: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC>
References: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC>

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
>
>




view thread (9+ messages)  latest in thread

Message-ID: <F76A1422-9F37-4A26-9430-51071837CF3C@fastcrypt.com>
Permalink:  ../F76A1422-9F37-4A26-9430-51071837CF3C@fastcrypt.com/
Also on:    postgresql.org/message-id/F76A1422-9F37-4A26-9430-51071837CF3C@fastcrypt.com

 · 

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: pg@fastcrypt.com, carl@zero-one.co.za
  Subject: Re: DatabaseMetaData and Transactions
  In-Reply-To: <F76A1422-9F37-4A26-9430-51071837CF3C@fastcrypt.com>
  References: <473185057AB4D7118B6C00508B624DDA1C968D@ALPHENPDC> <F76A1422-9F37-4A26-9430-51071837CF3C@fastcrypt.com>

* 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