Re: Resources
| От | Tom Lane | 
|---|---|
| Тема | Re: Resources | 
| Дата | |
| Msg-id | 11509.1012068302@sss.pgh.pa.us обсуждение исходный текст | 
| Ответ на | Re: Resources ("Lg" <postgres@lg.ndirect.co.uk>) | 
| Ответы | Using indices with LIKE | 
| Список | 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 по дате отправления: