Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 39AA16325B0 for ; Fri, 6 Aug 2010 20:34:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 29393-01 for ; Fri, 6 Aug 2010 23:34:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mail.postgresql.org (Postfix) with ESMTP id 02B76632526 for ; Fri, 6 Aug 2010 20:34:05 -0300 (ADT) Received: from compute3.internal (compute3.internal [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 17DE4190A43; Fri, 6 Aug 2010 19:34:04 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 06 Aug 2010 19:34:04 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=iiLq6G0O8Gu2pWtuqF8jlMSTszs=; b=GPs7nnrZWHHw95R1xa8yVldGuEPg0/4fCGOGPBSm6yTo1cd4oje0akKR27r7eg8X63/awI1+UNfCQSpFTw4HP2kEkaAR1ZJ0XTz1lq1GGgVNyAY+tsz9UOXsKdRobV/DqGiQ6i3nPyNzLa0DsI6FXwHsau+wMwwiR/ikM76oM9o= X-Sasl-enc: S3lNI5/PDTGEhrSr5VaxmQbv0sF1czsCQsb6u7xy8suJ 1281137643 Received: from AdamE6400 (c-67-185-162-89.hsd1.wa.comcast.net [67.185.162.89]) by mail.messagingengine.com (Postfix) with ESMTPSA id 146584F9F7B; Fri, 6 Aug 2010 19:34:02 -0400 (EDT) From: "Adam Rauch" To: "'Kris Jurka'" Cc: References: <006901cb3359$c4f493e0$4eddbba0$@com> In-Reply-To: Subject: Re: 9.0 JDBC driver reporting invalid primary key meta data Date: Fri, 6 Aug 2010 16:34:25 -0700 Message-ID: <01d201cb35bf$e95ccd70$bc166850$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acs1s6fAEsVrTd3lSeOofg54+kdMAAAC6u4g Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201008/17 X-Sequence-Number: 20820 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