From: Tom Lane <tgl@sss.pgh.pa.us>
To: pawel.kania@moneyhouse.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14437: BTREE Index is not used for queries on citext columns
Date: Mon, 28 Nov 2016 11:39:47 -0500
Message-ID: <3924.1480351187@sss.pgh.pa.us> (raw)
In-Reply-To: <20161128071755.6530.8905@wrigleys.postgresql.org>
References: <20161128071755.6530.8905@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
pawel.kania@moneyhouse.de writes:
> [ citext LIKE operator isn't indexable ]
Yeah. Don't hold your breath waiting for that to get better :-(.
The problem is that there's no way for extensions to plug into the
"special index operator" mechanism in the planner, so there's no
way to derive indexable range conditions from the citext LIKE operator.
That's probably solvable with enough sweat, but so far no one has
taken an interest in working on it.
Even if that were fixed, I'm not sure that your examples would be
indexable, because the patterns all start with case-foldable characters.
The "special index operator" conversion for ILIKE just throws up its hands
when it sees that, and I doubt citext could do any better.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, pawel.kania@moneyhouse.de
Subject: Re: BUG #14437: BTREE Index is not used for queries on citext columns
In-Reply-To: <3924.1480351187@sss.pgh.pa.us>
References: <20161128071755.6530.8905@wrigleys.postgresql.org> <3924.1480351187@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