Re: 9.2.4 vs 9.3.0 query planning (sort merge join vs hash join)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 9.2.4 vs 9.3.0 query planning (sort merge join vs hash join)
Дата
Msg-id 17739.1399893780@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 9.2.4 vs 9.3.0 query planning (sort merge join vs hash join)  (Tim Kane <tim.kane@gmail.com>)
Ответы Re: 9.2.4 vs 9.3.0 query planning (sort merge join vs hash join)  (Tim Kane <tim.kane@gmail.com>)
Список pgsql-performance
Tim Kane <tim.kane@gmail.com> writes:
> Is there a propensity for 9.2.4 to prefer a sort-merge-join, in place of a
> hash join?

Not particularly; I don't think there's any actual difference in the cost
estimation equations between 9.2 and 9.3.  The two plans you show are
close enough in estimated cost that the ordering of their costs might be
coming out differently just as a matter of random variation in statistics.

It'd be worth double-checking the work_mem setting on both systems,
though, as (IIRC) an undersized work_mem hurts the estimate for hashes
more than for sorts.

            regards, tom lane


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

Предыдущее
От: Tim Kane
Дата:
Сообщение: 9.2.4 vs 9.3.0 query planning (sort merge join vs hash join)
Следующее
От: Tim Kane
Дата:
Сообщение: Re: 9.2.4 vs 9.3.0 query planning (sort merge join vs hash join)