Re: Identical DB's, different execution plans

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Identical DB's, different execution plans
Дата
Msg-id 15191.1222706521@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Identical DB's, different execution plans  (Doug Eck <deck1@yahoo.com>)
Список pgsql-performance
Doug Eck <deck1@yahoo.com> writes:
> Any ideas as to what could the first db to opt for the slower subquery rather than the merge?

Not from the information given.  Presumably db1 thinks that the
mergejoin plan would be slower, but why it thinks that isn't clear yet.
Try setting enable_nestloop = off (and enable_hashjoin = off if it then
wants a hashjoin) and then post the EXPLAIN ANALYZE results.

            regards, tom lane

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

Предыдущее
От: Doug Eck
Дата:
Сообщение: Identical DB's, different execution plans
Следующее
От: Doug Eck
Дата:
Сообщение: Re: Identical DB's, different execution plans