From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pierre Ducroquet <p.psql@pinaraf.info>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6232: hstore operator ? no longer uses indexes
Date: Thu, 29 Sep 2011 06:22:48 +0300
Message-ID: <1317266569.18190.0.camel@vanquo.pezone.net> (raw)
In-Reply-To: <13745.1317264175@sss.pgh.pa.us>
References: <201109282050.p8SKoA4O084649@wwwmaster.postgresql.org>
<13745.1317264175@sss.pgh.pa.us>
On ons, 2011-09-28 at 22:42 -0400, Tom Lane wrote:
> "Pierre Ducroquet" <p.psql@pinaraf.info> writes:
> > [ the "hstore ? text" operator no longer matches an hstore GIST index ]
>
> Hmm ... this doesn't seem to be specific to either hstore or GIST; it's
> a collation problem. The index is marked as having no collation, which
> is reasonable since hstore is a collation-less type. However, the ?
> OpExpr gets marked as having "default" collation because it has one
> collatable input, namely the text constant. And then,
> match_clause_to_indexcol decides the clause doesn't match the index.
>
> Not sure what to do about this. Is it okay to suppose that collation
> can be ignored when matching to a collation-less index?
That sounds correct on first reading.
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-bugs@postgresql.org
Cc: peter_e@gmx.net, tgl@sss.pgh.pa.us, p.psql@pinaraf.info
Subject: Re: BUG #6232: hstore operator ? no longer uses indexes
In-Reply-To: <1317266569.18190.0.camel@vanquo.pezone.net>
References: <201109282050.p8SKoA4O084649@wwwmaster.postgresql.org> <13745.1317264175@sss.pgh.pa.us> <1317266569.18190.0.camel@vanquo.pezone.net>
* 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