From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Morris de Oryx <morrisdeoryx@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: citext LIKE search bug
Date: Sat, 28 Sep 2019 12:32:53 -0400
Message-ID: <20190928163253.GE26853@momjian.us> (raw)
In-Reply-To: <29403.1568866774@sss.pgh.pa.us>
References: <CAKqncch4eBt2c8ddNVxzcVh3fFhdk54QoDMzpKgpqor4gA-wcQ@mail.gmail.com>
<29403.1568866774@sss.pgh.pa.us>
On Thu, Sep 19, 2019 at 12:19:34AM -0400, Tom Lane wrote:
> Morris de Oryx <morrisdeoryx@gmail.com> writes:
> > I'm using citext fields, and am working through how to build indexes that
> > the planner recognizes. I found this paragraph in the PG 11 release notes:
>
> > "Allow creation of indexes that can be used by LIKE comparisons on citext
> > columns (Alexey Chernyshov)
> > To do this, the index must be created using the citext_pattern_ops operator
> > class."
> > https://www.postgresql.org/docs/11/release-11.html
>
> > As far as I can tell, this doesn't work, or at least not in my case with an
> > expression index.
>
> Hm. I found the original submission in the archives [1], and Alexey
> explicitly *didn't* claim that that patch was sufficient to enable LIKE
> index optimizations on citext. Indeed it obviously isn't, since it just
> created some weirdly-named operators without connecting them up to the
> LIKE plumbing in any way. So this seems like a case of the REL11 release
> notes author (probably Bruce) not reading too closely, which doesn't seem
> like entirely his fault since the commit message was totally content-free
> about what the point of the patch was [2].
I have no idea how I would have generated any release note item with
that commit or the commit diff. I must have asked someone, but I don't
remember who. The item was in my initial version of the relesae notes,
so it was not added later. Sorry.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
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: bruce@momjian.us, tgl@sss.pgh.pa.us, morrisdeoryx@gmail.com
Subject: Re: citext LIKE search bug
In-Reply-To: <20190928163253.GE26853@momjian.us>
References: <CAKqncch4eBt2c8ddNVxzcVh3fFhdk54QoDMzpKgpqor4gA-wcQ@mail.gmail.com> <29403.1568866774@sss.pgh.pa.us> <20190928163253.GE26853@momjian.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