Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 74117B5DBC1 for ; Thu, 29 Sep 2011 00:22:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 48410-07 for ; Thu, 29 Sep 2011 03:22:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mail.postgresql.org (Postfix) with SMTP id EE3FDB5DBC0 for ; Thu, 29 Sep 2011 00:22:52 -0300 (ADT) Received: (qmail invoked by alias); 29 Sep 2011 03:22:49 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.102]) [88.115.218.165] by mail.gmx.net (mp011) with SMTP; 29 Sep 2011 05:22:49 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX1/+hAAMvFj+HPm8dMXDdyyQo5xGYPDmEz/YA8/Zcs tSRwwYMxteBUpn Subject: Re: BUG #6232: hstore operator ? no longer uses indexes From: Peter Eisentraut To: Tom Lane Cc: Pierre Ducroquet , pgsql-bugs@postgresql.org Date: Thu, 29 Sep 2011 06:22:48 +0300 In-Reply-To: <13745.1317264175@sss.pgh.pa.us> References: <201109282050.p8SKoA4O084649@wwwmaster.postgresql.org> <13745.1317264175@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3- Content-Transfer-Encoding: 7bit Message-ID: <1317266569.18190.0.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.403 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/223 X-Sequence-Number: 31240 On ons, 2011-09-28 at 22:42 -0400, Tom Lane wrote: > "Pierre Ducroquet" 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.