Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group