Re: planer chooses very bad plan

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: planer chooses very bad plan
Дата
Msg-id o2jdcc563d11004111418pca3ad67dyda7e74d5252fd1c1@mail.gmail.com
обсуждение исходный текст
Ответ на planer chooses very bad plan  (Corin <wakathane@gmail.com>)
Ответы Re: planer chooses very bad plan
Список pgsql-performance
On Sun, Apr 11, 2010 at 3:12 PM, Corin <wakathane@gmail.com> wrote:
> Hi,
>
> I'm having a query where the planer chooses a very bad plan.

In both instances your number of rows estimated is WAY higher than the
actual number of rows returned.  Perhaps if you increased
default_statistics_target to 100, 200, 500 etc. re-analyzed, and then
reun explain analyze again.

Also increasing work_mem might encourage the bitmap index scans to occur.

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

Предыдущее
От: Corin
Дата:
Сообщение: planer chooses very bad plan
Следующее
От: Luke Lonergan
Дата:
Сообщение: Re: planer chooses very bad plan