X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 19829543EE for ; Fri, 4 Mar 2005 06:56:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52021-06 for ; Fri, 4 Mar 2005 06:56:01 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 555E852AA2 for ; Fri, 4 Mar 2005 06:56:00 +0000 (GMT) Received: (qmail 2759 invoked by uid 1112); 4 Mar 2005 06:55:59 -0000 Date: Fri, 4 Mar 2005 01:55:59 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: peter royal Cc: pgsql-jdbc@postgresql.org, Tom Lane Subject: Re: DatabaseMetaData.getIndexInfo and function-based indexes In-Reply-To: <46E72C0A-85C1-11D9-8AAF-000A95AC787E@pace2020.com> Message-ID: References: <2BDB6E76-8200-11D9-8AAF-000A95AC787E@pace2020.com> <14458.1108792459@sss.pgh.pa.us> <46E72C0A-85C1-11D9-8AAF-000A95AC787E@pace2020.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/32 X-Sequence-Number: 12425 On Wed, 23 Feb 2005, peter royal wrote: > >> would a patch to have DMD.getIndexInfo() return this information be > >> accepted into the tree? if so, i'll work one up. > > > > Yes, a column name of "pg_expression_N" is rather useless. upper(a) > > may not be a column name, but it is more accurate and informative. > > Patch + test cases attached. I've applied this with some minor modifications: - I've extended it to work for < 7.4 servers - You had modified the SELECT column order to return COLUMN_NAME in a different position than required by the spec. - Fixed the test cases to pass for < 7.4 servers Thanks. Kris Jurka