pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Bug in getIndexInfo() with 9.0 JDBC driver
Date: Sat, 25 Sep 2010 22:46:44 +0200
Message-ID: <i7ln38$16t$1@dough.gmane.org> (raw)
In-Reply-To: <21088.1285441849@sss.pgh.pa.us>
References: <i7kftq$mvg$1@dough.gmane.org>
	<i7kh9n$qql$1@dough.gmane.org>
	<21088.1285441849@sss.pgh.pa.us>

Tom Lane wrote on 25.09.2010 21:10:
>>> ERROR: argument to pg_get_expr() must come from system catalogs
>>> [SQL State=42501] org.postgresql.util.PSQLException: ERROR:
>>> argument to pg_get_expr() must come from system catalogs
>
>> I had a look at AbstractJdbc2DatabaseMetaData, and I think the
>> solution would be to push down the call pg_get_expr() into the
>> derived table to avoid the error:
>
> Actually, I think we'd better fix this on the backend side, because
> it's going to break for all branches not just 9.0 when the next set
> of minor releases come out.  I think we can make the code that's
> checking the argument of pg_get_expr() recurse into sub-selects to
> verify validity.
>

I assume putting out a new driver build is a lot quicker than releasing 9.0.1 and as this problem affects any JDBC based query tool (as they usually display table & index information), it's probably worthwhile fixing it in the driver first.

What I find a bit confusing is that the JUnit test works fine and it *is* testing getIndexInfo(). So there must be a bit more than what I can reproduce.

Regards
Thomas





view thread (4+ messages)

Message-ID: <i7ln38$16t$1@dough.gmane.org>
Permalink:  ../i7ln38$16t$1@dough.gmane.org/
Also on:    postgresql.org/message-id/i7ln38$16t$1@dough.gmane.org

 · 

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: spam_eater@gmx.net
  Subject: Re: Bug in getIndexInfo() with 9.0 JDBC driver
  In-Reply-To: <i7ln38$16t$1@dough.gmane.org>
  References: <i7kftq$mvg$1@dough.gmane.org> <i7kh9n$qql$1@dough.gmane.org> <21088.1285441849@sss.pgh.pa.us> <i7ln38$16t$1@dough.gmane.org>

* 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