Re: Suggestion for optimization

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Suggestion for optimization
Дата
Msg-id 20020406184224.B99366-100000@houston.familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Suggestion for optimization  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-hackers
> AFAICS, making them exact would not improve the planning estimates
> at all, because there are too many other sources of error.  We have
> approximate stats already via vacuum/analyze statistics gathering.
> >>
> What happens if someone deletes 75% of a table?
> What happens if someone imports 30 times more rows than are already in
> the table?
> What happens if one table is remarkably small or even empty and you are
> unaware?

If you are unaware of any of the above, you'll get poorer performance.
Just make sure you run ANALYZE often enough.  Anyone who does a massive
change in the number of rows in a table, or updates most of a table should
always do an ANALYZE afterwards.

Chris




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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: RFC: Restructuring pg_aggregate
Следующее
От: Tom Lane
Дата:
Сообщение: Re: RFC: Restructuring pg_aggregate