Re: 8.4.4, 9.0, and 9.1 Planner Differences

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 8.4.4, 9.0, and 9.1 Planner Differences
Дата
Msg-id 20459.1319337119@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 8.4.4, 9.0, and 9.1 Planner Differences  (Anthony Presley <anthony@resolution.com>)
Список pgsql-performance
Anthony Presley <anthony@resolution.com> writes:
> I have tried setting the statistics on employee.user_id to be 100 and 1000,
> and the rest are the default (100).

> I've run both an "ANALYZE" and a "VACUUM ANALYZE" on the production system -
> both "generally", and on each of the above tables (employee, app_user,
> location, preference).

> Here's an updated explain of the most recent attempt.  About 5 minutes after
> I analyzed them:
>   http://explain.depesz.com/s/G32

Looks like the biggest estimation errors are on the location_id joins.
Maybe you should be cranking up the stats targets on those columns.

            regards, tom lane

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

Предыдущее
От: Stefan Keller
Дата:
Сообщение: hstore query: Any better idea than adding more memory?
Следующее
От: kzsolt
Дата:
Сообщение: Re: Heavy contgnous load