Re: Inefficient Query Plans

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Inefficient Query Plans
Дата
Msg-id
20025.1109177055@sss.pgh.pa.us
Ответ на
Inefficient Query Plans (Luke Chambers)
Список
Дерево обсуждения
Inefficient Query Plans "Luke Chambers" <lukechambers7@gmail.com>
Re: Inefficient Query Plans Tom Lane <tgl@sss.pgh.pa.us>
"Luke Chambers"  writes:
> The following query plans both result from the very same query run on
> different servers. They obviously differ drastically, but I don't why
> as one db is a slonied copy of the other with identical postgresql.conf
> files.

There's an order-of-magnitude difference in the estimated row counts for
some of the joins, so it's hardly surprising that different plans would
be chosen.  Assuming that these are exactly the same Postgres version,
the only explanation would be considerably different ANALYZE statistics
stored in the two databases.

> Both databases are vacuum analyzed nightly.

Maybe you should double-check that.

			regards, tom lane
В списке pgsql-performance по дате отправления
От: John Allgood
Дата:
От: Tom Lane
Дата:
Сообщение: Re: subquery vs join on 7.4.5
FAQ