Re: How to boost performance of ilike queries ? - Mailing list pgsql-performance

From Stephan Szabo
Subject Re: How to boost performance of ilike queries ?
Date
Msg-id 20050125055555.J11415@megazone.bigpanda.com
Whole thread Raw
In response to Re: How to boost performance of ilike queries ?  (Antony Paul <antonypaul24@gmail.com>)
List pgsql-performance
On Tue, 25 Jan 2005, Antony Paul wrote:

> Creating an index and using lower(column) does not change the explain
> plan estimates.
> It seems that it is not using index for like or ilike queries
> irrespective of whether it have a pattern matching character in it or
> not. (using PostgreSQL 7.3.3)

I believe in 7.3.x an index is only considered for like in "C" locale, I
think the *_pattern_op opclasses were added in 7.4 for which you can make
indexes that are considered for non wildcard starting search strings in
non "C" locales. And it may have trouble doing estimates before 8.0 on the
functional index because of lack of statistics. You may want to consider
an upgrade once 8.0 shakes out a bit.


pgsql-performance by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: PostgreSQL clustering VS MySQL clustering
Next
From: Tatsuo Ishii
Date:
Subject: Re: PostgreSQL clustering VS MySQL clustering