Re: Index Scans become Seq Scans after VACUUM ANALYSE
| От | mlw |
|---|---|
| Тема | Re: Index Scans become Seq Scans after VACUUM ANALYSE |
| Дата | |
| Msg-id | 3CBDB59C.74A4C8D2@mohawksoft.com обсуждение исходный текст |
| Ответ на | Re: Index Scans become Seq Scans after VACUUM ANALYSE (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Index Scans become Seq Scans after VACUUM ANALYSE
|
| Список | pgsql-hackers |
Tom Lane wrote: > > mlw <markw@mohawksoft.com> writes: > > ... I have seen many instances of when > > PostgreSQL refuses to use an index because the data distribution is uneven. > > This is fixed, or at least attacked, in 7.2. Again, I do not see this > as an argument for making the planner stupider instead of smarter. > You completely ignored the point I was trying to make. Statistics are a summation of the data, not the actual data. As such, it can not possibly represent all possible configurations of tables. Adding huristics, such as weighting for index scans, is not making the planner stupider. It is making it smarter and more flexable.
В списке pgsql-hackers по дате отправления: