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: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

> Oh, and the lower(field) LIKE is MySQL compatible, but I don't think
> 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

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


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-2017 The PostgreSQL Global Development Group