X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F1413DAFCC for ; Thu, 10 Nov 2005 15:18:24 -0400 (AST) 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 18474-07 for ; Thu, 10 Nov 2005 19:18:23 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A4828DB1D0 for ; Thu, 10 Nov 2005 15:18:23 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jAAJIM0J011083; Thu, 10 Nov 2005 14:18:22 -0500 (EST) To: Kris Jurka Cc: Thomas Kellerer , pgsql-jdbc@postgresql.org Subject: Re: getIndexInfo() not returning operator classes In-reply-to: References: Comments: In-reply-to Kris Jurka message dated "Thu, 10 Nov 2005 13:39:02 -0500" Date: Thu, 10 Nov 2005 14:18:21 -0500 Message-ID: <11082.1131650301@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.006 required=5 tests=[AWL=0.006] X-Spam-Score: 0.006 X-Spam-Level: X-Archive-Number: 200511/85 X-Sequence-Number: 14183 Kris Jurka writes: > In the function case the indexed data is not the column data, so putting > the column's name is misleading. There's another argument here, which is that the JDBC spec (presumably) says that that field is a column name, full stop. Now an app that's using functional indexes is already outside the spec, so returning something that's not just a name seems acceptable in that case, and arguably it's the proper name for the index's data anyway. But cramming an opclass name in there seems to me to violate the spirit of the spec. regards, tom lane