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

From Bruce Momjian
Subject Re: How to get around LIKE inefficiencies?
Date
Msg-id 200011060236.VAA08519@candle.pha.pa.us
Whole thread Raw
In response to Re: How to get around LIKE inefficiencies?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: How to get around LIKE inefficiencies?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Sorry to be getting in here late.  Have you tried CLUSTER?  If it is
using an index scan, and it is slow, cluster often helps, especially
when there are several duplicate matches, as there is with LIKE.  Let me
know how that works.

> A brute-force answer would be to remove the url_url index ;-)
> dunno if that would slow down other queries, however.
> 
>             regards, tom lane
> 


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to get around LIKE inefficiencies?
Next
From: Tom Lane
Date:
Subject: Re: How to get around LIKE inefficiencies?