From: David Wheeler <david@kineticode.com>
To: josh@agliodbs.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance of DOMAINs
Date: Thu, 22 Jun 2006 11:18:12 -0700
Message-ID: <DDC7B143-465F-4AC6-AE5A-D895A2FD2A1E@kineticode.com> (raw)
In-Reply-To: <200606211819.08239.josh@agliodbs.com>
References: <54D833BE-A58F-47B8-B070-2AEDC0802468@kineticode.com>
<200606211819.08239.josh@agliodbs.com>
On Jun 21, 2006, at 18:19, Josh Berkus wrote:
> Well, current case-insensitivity hacks definitely aren't compatible
> with
> LIKE as far as "begins with" indexes are concerned.
Yes, currently I use LOWER() for my indexes and for all LIKE, =, etc.
queries. This works well, but ORDER by of course isn't what I'd like.
That's one of the things that Elein's email domain addresses, albeit
with a USING keyword, which is unfortunate.
> Of course, floating
> LIKEs (%value%) are going to suck no matter what data type you're
> using.
Yes, I know that. :-) I avoid that.
> I created an operator for CI equality ... =~ ... which performs
> well on
> indexed columns. But it doesn't do "begins with".
Oops. So how could it perform well on indexed columns?
> ITEXT is a TODO, but there are reasons why it's harder than it looks.
I'm sure. I should bug potential future SoC students about it. ;-)
Best,
David
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-performance@postgresql.org
Cc: david@kineticode.com, josh@agliodbs.com
Subject: Re: Performance of DOMAINs
In-Reply-To: <DDC7B143-465F-4AC6-AE5A-D895A2FD2A1E@kineticode.com>
References: <54D833BE-A58F-47B8-B070-2AEDC0802468@kineticode.com> <200606211819.08239.josh@agliodbs.com> <DDC7B143-465F-4AC6-AE5A-D895A2FD2A1E@kineticode.com>
* 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