Re: [HACKERS] LIKE fixed(?) for non-ASCII collation orders - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] LIKE fixed(?) for non-ASCII collation orders
Date
Msg-id 18472.946654851@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] LIKE fixed(?) for non-ASCII collation orders  (Andreas Degert <ad@papyrus-gmbh.de>)
List pgsql-hackers
Andreas Degert <ad@papyrus-gmbh.de> writes:
> the .. >= .. < .. condition will result in addtional matches, like 'fo ot',
> so you still have to check with LIKE.

Of course.  The point of all this is just to create a "prefilter" that can
be implemented by scanning an index, so that most of the rows in the
table need not be visited at all when the LIKE pattern has the right
form.  But the original LIKE operator is still executed as part of the
WHERE condition for each row.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Sören Kreimeier"
Date:
Subject: How you can put over 20 GB on a single CD!
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Happy New Year!