Re: Using Bitmap scan instead of Seq scan

Поиск
Список
Период
Сортировка
От Vick Khera
Тема Re: Using Bitmap scan instead of Seq scan
Дата
Msg-id AANLkTinvzXGkf=FZU=SS73DccGhqhm3QY86X53qRL4sv@mail.gmail.com
обсуждение исходный текст
Ответ на Using Bitmap scan instead of Seq scan  (Ahmed Ossama <ahmed@aossama.net>)
Список pgsql-general
On Mon, Feb 14, 2011 at 12:40 PM, Ahmed Ossama <ahmed@aossama.net> wrote:
> I did a REINDEX and ANALYZE on the table, disabled the seqscan and ran the
> query again with the same result.
>
> My question how do I make PostgreSQL always uses bitmap scan instead of seq
> scan?
>
> Any advice is very much appreciated.
>

Have a look at the config parameters related to sequential page cost
and random page cost. Perhaps you need to adjust the ratio between
them to better suit your hardware.  The planner may nudge itself over
to the index scan if it thinks it won't be too expensive.

Also, I'm not sure the default sample size for analyze in 8.4, but it
should probably be set to 100 if it is not already.

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

Предыдущее
От: Christian Ullrich
Дата:
Сообщение: Re: Multithreaded query onto 4 postgresql instances
Следующее
От: Dmitriy Igrishin
Дата:
Сообщение: Re: SELECT INTO array[i] with PL/pgSQL