getIndexInfo() not returning operator classes

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: getIndexInfo() not returning operator classes
Date: 2005-11-10 00:20:13
Message-ID: dku3nu$8k2$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello,

when I call getIndexInfo() it correctly returns the definition for
function based indexes, but it does not return operator classed.

An index: create index idx_foo on foo(bar varchar_pattern_ops);

will show up as "bar" only in the definition column of the result set.
This makes it a bit confusing if you have another index like:

create index idx_foo_2 on foo(bar);

Which will show two identical index definitions even though they are
different.

I tested this with PG 8.1 and the 8.1 build 404 driver on Windows 2000

Regards
Thomas

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Srivats 2005-11-10 05:20:10 Getting param names
Previous Message Dave Cramer 2005-11-09 13:01:14 Re: use of OID.Unknown