Re: wildcard makes seq scan on prod db but not in test

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: wildcard makes seq scan on prod db but not in test
Дата
Msg-id 4DC7F2B3020000250003D424@gw.wicourts.gov
обсуждение исходный текст
Ответ на wildcard makes seq scan on prod db but not in test  (Marcus Engene <mengpg2@engene.se>)
Ответы Re: wildcard makes seq scan on prod db but not in test  (Marcus Engene <mengpg2@engene.se>)
Список pgsql-performance
Marcus Engene <mengpg2@engene.se> wrote:

> I have a table with a few million rows and this index:
> CREATE INDEX bond_item_common_x7 ON bond_item_common
> ((lower(original_filename)));

> Dropping the wildcard for the like, both databases uses the index.
>
> Is there a way to convince Postgres to try not to do full table
> scan as much?

That could be a difference is collations.  What do you get from the
query on this page for each database?:

http://wiki.postgresql.org/wiki/Server_Configuration

-Kevin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: wildcard makes seq scan on prod db but not in test
Следующее
От: Marcus Engene
Дата:
Сообщение: Re: wildcard makes seq scan on prod db but not in test