Re: Resources - Mailing list pgsql-sql

From Tom Lane
Subject Re: Resources
Date
Msg-id 11509.1012068302@sss.pgh.pa.us
Whole thread Raw
In response to Re: Resources  ("Lg" <postgres@lg.ndirect.co.uk>)
Responses Using indices with LIKE  ("Llew Sion Goodstadt" <leo.goodstadt@human-anatomy.oxford.ac.uk>)
List pgsql-sql
"Lg" <postgres@lg.ndirect.co.uk> writes:
> This is of great interest to me because this is exactly what I am trying
> to do: use indices to speed up anchored searches.

> What you say mirrors what the faq says. However, I just can't get it to
> work.

Probably you initialized the database in non-C locale.  Anchored
searches can only be optimized with index scans in C locale; the
index ordering isn't necessarily right in other locales.

You can check the database locale with contrib/pg_controldata,
or if that's not handy tryod -c $PGDATA/global/pg_control
and look for locale names near the end of the file.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Lg"
Date:
Subject: Re: Resources
Next
From: Bruce Momjian
Date:
Subject: Re: LIMIT Optimization