Re: Performance problem on 8.2.4, but not 8.2.3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Performance problem on 8.2.4, but not 8.2.3
Дата
Msg-id 21464.1180125226@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Performance problem on 8.2.4, but not 8.2.3  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Ответы Re: Performance problem on 8.2.4, but not 8.2.3  (Dave Pirotte <dpirotte@mediamatters.org>)
Список pgsql-performance
"Steinar H. Gunderson" <sgunderson@bigfoot.com> writes:
> It looks like the estimated cost is lower for 8.2.4 -- could it be that the
> fact that he's giving it more memory lead to the planner picking a plan that
> happens to be worse?

Offhand I don't think so.  More work_mem might make a hash join look
cheaper (or a sort for a mergejoin), but the problem here seems to be
that it's switching away from a hash and to a nestloop.  Which is a
loser because there are many more outer-relation rows than it's
expecting.

            regards, tom lane

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

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: Performance problem on 8.2.4, but not 8.2.3
Следующее
От: Dave Pirotte
Дата:
Сообщение: Re: Performance problem on 8.2.4, but not 8.2.3