Index not always being used

Поиск
Список
Период
Сортировка
От John Scalia
Тема Index not always being used
Дата
Msg-id 180F96D3-690E-466E-B73E-F6B34C6409C7@gmail.com
обсуждение исходный текст
Ответы Re: Index not always being used  (Holger Jakobs <holger@jakobs.com>)
Re: Index not always being used  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-admin
I’ve got a table with approximately 5.5 million rows, and one column that is frequently searched is of type varchar(50)
and we just put a trigram index on it. Now, if we search “where bld_city = ‘baskingridge’”, explain says a sequential
tablescan is going to be used, but if I change the query to use “where bold_city like ‘basking%’”, then explain
correctlyshows that a bitmap index scan will be performed. Why would these two forms use different approaches? I’m a
bitconfused. 
—
Jay

Sent from my iPad


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

Предыдущее
От: Licio Matos
Дата:
Сообщение: Re: Backup From HotStandby
Следующее
От: Holger Jakobs
Дата:
Сообщение: Re: Index not always being used