Re: query planner: automatic rescribe of LIKE to BETWEEN ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: espero7757(at)gmx(dot)net
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: query planner: automatic rescribe of LIKE to BETWEEN ?
Date: 2006-08-22 21:12:33
Message-ID: 11769.1156281153@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ulrich Habel <espero7757(at)gmx(dot)net> writes:
> Anythings speeks against this hack?

Only that it was done years ago.

As Alvaro mentions, if you are using a non-C locale then you need
non-default index opclasses to get it to work. Non-C locales usually
have index sort orders that don't play nice with this conversion.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Davis 2006-08-22 21:34:08 PowerEdge 2950 questions
Previous Message Charles Sprickman 2006-08-22 20:59:38 Benchmarks