pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feed9.0 JDBC driver reporting invalid primary key meta data
3+ messages / 2 participants
[nested] [flat]
* 9.0 JDBC driver reporting invalid primary key meta data
@ 2010-08-03 22:18 Adam Rauch <adam@labkey.com>
2010-08-06 22:06 ` Re: 9.0 JDBC driver reporting invalid primary key meta data Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 3+ messages in thread
From: Adam Rauch @ 2010-08-03 22:18 UTC (permalink / raw)
To: pgsql-jdbc
Requesting primary key meta data via the JDBC driver [i.e.,
conn.getMetaData().getPrimaryKeys()] against PostgreSQL 9.0 reports
incorrect meta data for tables whose PK column(s) has been renamed. I'm
testing this against the latest 9.0 driver
(http://jdbc.postgresql.org/download/postgresql-9.0dev-800.jdbc4.jar
<http://www.google.com/url?sa=D&q=http://jdbc.postgresql.org/download/postgr
esql-9.0dev-800.jdbc4.jar&usg=AFQjCNE8mRwfaMyn6yLoWT4wrlpYnhbl0A> ) and the
PostgreSQL 9.0 Beta 4 release. I initially reported this problem during Beta
1 to the pgsql-testers alias; more details and repro code are here:
http://archives.postgresql.org/pgsql-testers/2010-05/msg00003.php
My understanding is this is an intentional compatibility break by the server
team that will require a change to the JDBC driver. The issue is of course
trivial to avoid or work around in a test environment, but it's a
showstopper for production environments. Many applications like ours must
operate on tables, columns, and constraints without any inherent knowledge
of or control over these database objects or their history; we rely
exclusively on information from the database server and simply can't
function with invalid meta data being reported.
Let me know if you need more information or if I can help with testing,
debugging, etc.
Thanks,
Adam
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: 9.0 JDBC driver reporting invalid primary key meta data
2010-08-03 22:18 9.0 JDBC driver reporting invalid primary key meta data Adam Rauch <adam@labkey.com>
@ 2010-08-06 22:06 ` Kris Jurka <books@ejurka.com>
2010-08-06 23:34 ` Re: 9.0 JDBC driver reporting invalid primary key meta data Adam Rauch <adam@labkey.com>
0 siblings, 1 reply; 3+ messages in thread
From: Kris Jurka @ 2010-08-06 22:06 UTC (permalink / raw)
To: Adam Rauch <adam@labkey.com>; +Cc: pgsql-jdbc
On Tue, 3 Aug 2010, Adam Rauch wrote:
>
> Requesting primary key meta data via the JDBC driver [i.e.,
> conn.getMetaData().getPrimaryKeys()] against PostgreSQL 9.0 reports
> incorrect meta data for tables whose PK column(s) has been renamed.
I've just checked in a fix for this problem. Also affected are
getIndexInfo and getBestRowIdentifier.
I've posted a jar file if you'd like to test this on your application.
http://www.ejurka.com/pgsql/jars/ar/
Kris Jurka
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: 9.0 JDBC driver reporting invalid primary key meta data
2010-08-03 22:18 9.0 JDBC driver reporting invalid primary key meta data Adam Rauch <adam@labkey.com>
2010-08-06 22:06 ` Re: 9.0 JDBC driver reporting invalid primary key meta data Kris Jurka <books@ejurka.com>
@ 2010-08-06 23:34 ` Adam Rauch <adam@labkey.com>
0 siblings, 0 replies; 3+ messages in thread
From: Adam Rauch @ 2010-08-06 23:34 UTC (permalink / raw)
To: 'Kris Jurka' <books@ejurka.com>; +Cc: pgsql-jdbc
Preliminary testing shows that this driver fixes the problem! I'll keep
testing, but it looks great so far.
Thanks so much,
Adam
-----Original Message-----
From: Kris Jurka [mailto:books@ejurka.com]
Sent: Friday, August 06, 2010 3:07 PM
To: Adam Rauch
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] 9.0 JDBC driver reporting invalid primary key meta data
On Tue, 3 Aug 2010, Adam Rauch wrote:
>
> Requesting primary key meta data via the JDBC driver [i.e.,
> conn.getMetaData().getPrimaryKeys()] against PostgreSQL 9.0 reports
> incorrect meta data for tables whose PK column(s) has been renamed.
I've just checked in a fix for this problem. Also affected are
getIndexInfo and getBestRowIdentifier.
I've posted a jar file if you'd like to test this on your application.
http://www.ejurka.com/pgsql/jars/ar/
Kris Jurka
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2010-08-06 23:34 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-08-03 22:18 9.0 JDBC driver reporting invalid primary key meta data Adam Rauch <adam@labkey.com>
2010-08-06 22:06 ` Kris Jurka <books@ejurka.com>
2010-08-06 23:34 ` Adam Rauch <adam@labkey.com>
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