Re: Using index for "like 'ABC%'" type query

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Using index for "like 'ABC%'" type query
Дата
Msg-id 20030418143104.GB26351@libertyrms.info
обсуждение исходный текст
Ответ на Using index for "like 'ABC%'" type query  (lec <englim@pc.jaring.my>)
Ответы default locale considered harmful? (was Re: Using index for "like 'ABC%'" type query)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Fri, Apr 18, 2003 at 10:56:52AM +0800, lec wrote:
> For current version of postgresql, is it possible for a query like below
> to utilize an index?
>
> select item_name from item where item_code like 'ABC%';

Yes.  But locale is enabled by default now, and if you use anything
other than C (and other-than-C is increasingly the default on the
supportedplatforms), it won't work.  Just make sure that your locale
is C when you do initdb.

A

--
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


В списке pgsql-general по дате отправления:

Предыдущее
От: Ken Williams
Дата:
Сообщение: Weird "template1" errors on CREATE DATABASE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Weird "template1" errors on CREATE DATABASE