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 A653ED95AE for ; Thu, 10 Nov 2005 15:12:57 -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 22894-01 for ; Thu, 10 Nov 2005 19:12:55 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id 47095D70C0 for ; Thu, 10 Nov 2005 15:12:55 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EaHoL-00084X-TQ for pgsql-jdbc@postgresql.org; Thu, 10 Nov 2005 20:10:14 +0100 Received: from ppp-82-135-74-9.mnet-online.de ([82.135.74.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2005 20:10:13 +0100 Received: from spam_eater by ppp-82-135-74-9.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2005 20:10:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: getIndexInfo() not returning operator classes Date: Thu, 10 Nov 2005 20:06:14 +0100 Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp-82-135-74-9.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7.2.0 X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/84 X-Sequence-Number: 14182 Kris Jurka wrote on 10.11.2005 19:39: > Are you sure you want to be using getIndexInfo for this instead of > something more pg specific like the pg_get_indexdef function? > > I personally don't think adding opclass to the column_name is a good > idea, but you're welcome to try and sway me with a convincing argument > or popular support. The reason I'm asking: I'm maintaining a JDBC based SQL client which is also displaying index information (including the SQL to re-create them) Currently the information returned by the driver is not enough to fully re-create those index definitions. So I'll have to maintain Postgres specific code for this, which is not a big deal (for displaying the DDL I now use pg_indexes which contains the correct SQL) It surely isn't a big thing, and probably doesn't affect 99% of the users, but still I thought I bring this topic up. Thanks for your time. Thomas