Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 271FA632E1E for ; Fri, 6 Aug 2010 19:06:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 38332-05 for ; Fri, 6 Aug 2010 22:06:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 04070632A27 for ; Fri, 6 Aug 2010 19:06:38 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 51E1E2840E; Fri, 6 Aug 2010 18:06:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=Cn1+NhkPwP02b6gNdv2jaaflm0c=; b=GWtNCM lhXlfOPF6nhSiRn+f/3PPiATFuExHsIEvm3Ye0SPYlf6+4e7VZae5E8e/vSb61pH yx0m4mBHDLmRrotMfAXt2XgbflG4VtrTe7eoch38ZSfqkYDsaD1YN2QgrefqCR1i 2cFxOsS2tTy3v64TJbz2WtNkeKTB8Od7fFgac= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 3990428401; Fri, 6 Aug 2010 18:06:37 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 0CA8AA20F; Fri, 6 Aug 2010 18:06:36 -0400 (EDT) Date: Fri, 6 Aug 2010 18:06:36 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Adam Rauch cc: pgsql-jdbc@postgresql.org Subject: Re: 9.0 JDBC driver reporting invalid primary key meta data In-Reply-To: <006901cb3359$c4f493e0$4eddbba0$@com> Message-ID: References: <006901cb3359$c4f493e0$4eddbba0$@com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/15 X-Sequence-Number: 20818 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