another 8.1->8.4 regression

Поиск
Список
Период
Сортировка
От Ben Chobot
Тема another 8.1->8.4 regression
Дата
Msg-id 84633B63-C6F3-47A1-BC85-AE175BC43CCA@silentmedia.com
обсуждение исходный текст
Ответы Re: another 8.1->8.4 regression  (Ben Chobot <bench@silentmedia.com>)
Список pgsql-performance
I'm having problems with another one of my queries after moving from 8.1.19 to 8.4.2. On 8.1.19, the plan looked like this:


That runs pretty well. On 8.4.2, the same query looks like this:


If I turn off mergejoin and hashjoin, I can get 8.4.2 to spit out this:


...which it thinks is going to suck but which does not. 

The query and relevant table definitions are here:



Any suggestions? I'm guessing the problem is with the absurd over-estimation on the nested loop under the sort node, but I'm not sure why it's so bad. 

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

Предыдущее
От: lionel duboeuf
Дата:
Сообщение: Re: Almost infinite query -> Different Query Plan when changing where clause value
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Linux I/O tuning: CFQ vs. deadline