pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: getIndexInfo() not returning operator classes
Date: Thu, 10 Nov 2005 19:03:10 +0100
Message-ID: <dl020t$njm$1@sea.gmane.org> (raw)
In-Reply-To: <Pine.BSO.4.61.0511101246080.3752@leary.csoft.net>
References: <dku3nu$8k2$1@sea.gmane.org>
<Pine.BSO.4.61.0511100152300.25311@leary.csoft.net>
<dl0033$hng$1@sea.gmane.org>
<Pine.BSO.4.61.0511101246080.3752@leary.csoft.net>
Kris Jurka wrote on 10.11.2005 18:48:
>> for the above mentioned index, I would expect the "DEFINITION" field
>> of the result set to contain "bar varchar_pattern_ops". Unless I
>> misunderstood the operator class and it does not apply to a column but
>> to the whole index. In that case, yes there isn't an apropriate place
>> to put this information.
>>
>
> Opclasses are per column, not for the whole index. I don't see any
> DEFINITION column though.
>
> http://java.sun.com/j2se/1.5.0/docs/api/java/sql/DatabaseMetaData.html#getIndexInfo(java.lang.String...)
>
Sorry, I meant COLUMN_NAME (internally I'm collecting all values from
COLUMN_NAME into a field definition, that's where the error comes from).
That column will e.g. contain something like "lower(name)" for a
function based index, so I don't see a reason why it couldn't contain
"bar varchar_pattern_ops"
In both cases it's not the column's name any longer
Regards
Thomas
view thread (8+ messages) latest in thread
Message-ID: <dl020t$njm$1@sea.gmane.org> Permalink: ../dl020t$njm$1@sea.gmane.org/ Also on: postgresql.org/message-id/dl020t$njm$1@sea.gmane.org ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-jdbc@postgresql.org Cc: spam_eater@gmx.net Subject: Re: getIndexInfo() not returning operator classes In-Reply-To: <dl020t$njm$1@sea.gmane.org> References: <dku3nu$8k2$1@sea.gmane.org> <Pine.BSO.4.61.0511100152300.25311@leary.csoft.net> <dl0033$hng$1@sea.gmane.org> <Pine.BSO.4.61.0511101246080.3752@leary.csoft.net> <dl020t$njm$1@sea.gmane.org> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox