Re: NOT LIKE much faster than LIKE?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Andrea Arcangeli <andrea(at)cpushare(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)postgresql(dot)org
Subject: Re: NOT LIKE much faster than LIKE?
Date: 2006-01-10 02:29:05
Message-ID: 43C31BF1.704@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> UNLIKELY string LIKE '%% PREEMPT %%'
>
> or:
>
> LIKELY string NOT LIKE '%% PREEMPT %%'

You should be using contrib/tsearch2 for an un-anchored text search perhaps?

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andrea Arcangeli 2006-01-10 02:45:34 Re: NOT LIKE much faster than LIKE?
Previous Message Andrea Arcangeli 2006-01-10 02:23:03 Re: NOT LIKE much faster than LIKE?