Re: Optimizer Selecting Incorrect Index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimizer Selecting Incorrect Index
Дата
Msg-id 2137.1093460881@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Optimizer Selecting Incorrect Index  (Richard Huxton <dev@archonet.com>)
Ответы Re: Optimizer Selecting Incorrect Index
Список pgsql-performance
Richard Huxton <dev@archonet.com> writes:
> Things to check:
> 1. postgresql.conf settings match - different costs could cause this
> 2. statistics on the two columns (trn_patno,trn_old_date) - if they
> differ considerably between systems that would also explain it.

The different estimated row counts could only come from #2.  I suspect
David has forgotten to run ANALYZE on the second system.

I agree that EXPLAIN VERBOSE output is not helpful...

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: What is the best way to do attribute/values?
Следующее
От: Robert Treat
Дата:
Сообщение: Anyone familiar with Apple Xserve RAID