Re: BUG #13824: EXISTS sometimes uses seq scan instead of index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #13824: EXISTS sometimes uses seq scan instead of index
Дата
Msg-id 13864.1450401461@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #13824: EXISTS sometimes uses seq scan instead of index  (grzegorz@thulium.pl)
Ответы Re: BUG #13824: EXISTS sometimes uses seq scan instead of index  (Grzegorz Garlewicz <grzegorz@thulium.pl>)
Список pgsql-bugs
grzegorz@thulium.pl writes:
> Whenever I perform select like below, planner thinks it's going to look up
> many rows and falls back to seq scan. If I disable seq scan, it correctly
> uses the index.

You might need to reduce random_page_cost to reflect your environment
better ... especially if you're most concerned about performance with
all data already cached in memory, which is what these examples are
probably showing.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Known issues on PostgreSQL server 8.1.19
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #13822: Slave terminated - WAL contains references to invalid page