From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-performance@postgresql.org
Subject: Re: LIKE without wildcard different from =
Date: Wed, 04 Aug 2010 12:58:05 -0400
Message-ID: <21547.1280941085@sss.pgh.pa.us> (raw)
In-Reply-To: <4C59547802000025000341CA@gw.wicourts.gov>
References: <4C59503402000025000341C0@gw.wicourts.gov>
<4C59503402000025000341C0@gw.wicourts.gov>
<21079.1280940107@sss.pgh.pa.us>
<4C59547802000025000341CA@gw.wicourts.gov>
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> To be clear, though, the problem isn't that it didn't turn a LIKE
> with no wildcard characters into an equality test, it's that it
> would have been three orders of magnitude faster (because of an
> available index with an opclass specification) if it had treated an
> equality test as a LIKE.
Ah. Well, the real fix for that is also in 8.4: we got rid of the
separate ~=~ operator, so a text_pattern_ops index is now usable
for plain =.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov
Subject: Re: LIKE without wildcard different from =
In-Reply-To: <21547.1280941085@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