Re: How to get around LIKE inefficiencies? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: How to get around LIKE inefficiencies?
Date
Msg-id 1837.973479543@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to get around LIKE inefficiencies?  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: How to get around LIKE inefficiencies?  (Philip Warner <pjw@rhyme.com.au>)
Re: How to get around LIKE inefficiencies?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> Could you trick it into not using the index (AND using the other strategy?)
> by using a calculation:

>    AND ( (url.url || ' ') LIKE 'http://www.postgresql.org/% ');

> it's a bit nasty.

Looks like a great kluge to me ;-)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: How to get around LIKE inefficiencies?
Next
From: The Hermit Hacker
Date:
Subject: Re: How to get around LIKE inefficiencies?