Re: query optimizer questions - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: query optimizer questions
Date
Msg-id Pine.LNX.4.30.0107022002380.677-100000@peter.localdomain
Whole thread Raw
In response to query optimizer questions  (Robert Berger <rwb@vtiscan.com>)
List pgsql-general
Robert Berger writes:

> Why do the following three queries use different scan types under 7.1.2?
> Under
> 6.5.3 they all used index (and my system ran MUCH faster, since I often
> use the trailing %)

In 7.1, LIKE optimization (i.e., possibly using an index) has been
disabled unless you are in the C locale because it does not work
correctly.  You could set your locale to C and re-initdb to get it to work
again.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: "Clinton James"
Date:
Subject: pqReadData() -- backend closed on COPY
Next
From: Robert Berger
Date:
Subject: Re: query optimizer questions