Re: [GENERAL] Generic search

Поиск
Список
Период
Сортировка
От Taral
Тема Re: [GENERAL] Generic search
Дата
Msg-id 98120409165203.00927@taral.dobiecenter.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Generic search  (Sferacarta Software <sferac@bo.nettuno.it>)
Ответы Re: [GENERAL] Generic search
Re: [GENERAL] Generic search
Список pgsql-general
>hygea=> explain select * from comuni where nome = 'A%';
>NOTICE:  QUERY PLAN:
>Index Scan using nome_comune_idx on comuni  (cost=2.05 size=2 width=84)
>^^^^^

The question was about LIKE, not =. Because LIKE uses regexp-style matching and
we have no substring index functionality, it cannot use the index. If you're
always matching on the first character, you can do something like fulltextindex
does and use triggers and a second (indexed) table to be able to match on the
first character only.

HTH

Taral

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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [GENERAL] compiling postgresql 6.4 in BSDi
Следующее
От: Sferacarta Software
Дата:
Сообщение: Re[2]: [GENERAL] Generic search