Re: ~* + LIMIT => infinite time?

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: <typea(at)l-i-e(dot)com>, <hannu(at)tm(dot)ee>
Cc: <typea(at)l-i-e(dot)com>, <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: ~* + LIMIT => infinite time?
Date: 2002-12-16 18:26:24
Message-ID: web-2283495@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Typea,

> Oh, and the lower(field) LIKE is MySQL compatible, but I don't think
> MySQL
> has an ILIKE... We're abandoning the MySQL support now anyway, since
> we
> NEED performance way more than we need MySQL compatibility.

ILIKE is SQL-spec. There's reasons to use any:

ILIKE is slightly faster on un-anchored text searches ("name ILIKE
'%john%'")

lower(column) can be indexed for anchored text searches ("lower(name)
LIKE 'john%'")

"~*" cannot be indexed, but will accept regexp operators for
sophisticated text searches ("name ~* 'jo[han]n?'")

-Josh Berkus

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2002-12-16 18:34:49 Re: ~* + LIMIT => infinite time?
Previous Message typea 2002-12-16 10:20:27 Re: ~* + LIMIT => infinite time?