From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <stark@mit.edu>
Cc: Peter Eisentraut <peter_e@gmx.net>
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 00:08:14 -0400
Message-ID: <18821.1317269294@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM-w4HMR-PkJV7F+owD54xKt+kY8Sk3OSYwwETkcuv0GpCNKZQ@mail.gmail.com>
References: <201109282050.p8SKoA4O084649@wwwmaster.postgresql.org>
<13745.1317264175@sss.pgh.pa.us>
<1317266569.18190.0.camel@vanquo.pezone.net>
<CAM-w4HMR-PkJV7F+owD54xKt+kY8Sk3OSYwwETkcuv0GpCNKZQ@mail.gmail.com>
Greg Stark <stark@mit.edu> writes:
> On Thu, Sep 29, 2011 at 4:22 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
>>> 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.
> Doesn't this depend on the semantics of the ? operator?
Well, yeah. But if the operator requires a particular collation, what's
it doing in an operator class for a collation-less indexed datatype?
I think the operator could actually depend on its input collation with
respect to some part of the processing it does on its collatable
right-hand input. But if the left-hand column (the indexed column) is
of a non-collatable type, it's hard to see how the operator could depend
on the index having a collation.
Also, I've now tested a patch along these lines and it passes core and
contrib regression tests, so there's not anything too obviously broken
about the idea.
regards, tom lane
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: tgl@sss.pgh.pa.us, stark@mit.edu, peter_e@gmx.net, p.psql@pinaraf.info
Subject: Re: BUG #6232: hstore operator ? no longer uses indexes
In-Reply-To: <18821.1317269294@sss.pgh.pa.us>
References: <201109282050.p8SKoA4O084649@wwwmaster.postgresql.org> <13745.1317264175@sss.pgh.pa.us> <1317266569.18190.0.camel@vanquo.pezone.net> <CAM-w4HMR-PkJV7F+owD54xKt+kY8Sk3OSYwwETkcuv0GpCNKZQ@mail.gmail.com> <18821.1317269294@sss.pgh.pa.us>
* 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