Re: Thoughts on statistics for continuously advancing columns

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Thoughts on statistics for continuously advancing columns
Дата
Msg-id 4B3B329C020000250002DAB4@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Thoughts on statistics for continuously advancing columns  (Greg Smith <greg@2ndquadrant.com>)
Список pgsql-hackers
Greg Smith <greg@2ndquadrant.com> wrote:
> If, say, your stats say there's 2B rows in the table but there's
> actually 2.5B, that's a big error, but unlikely to change the
> types of plans you get.  Once there's millions of distinct values
> it's takes a big change for plans to shift, etc.
Well, the exception to that is if the stats say that your highest
value is x, and there are actually 500 million rows with values
greater than x, you can get some very bad plans for queries
requiring a range of values above x.
-Kevin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Thoughts on statistics for continuously advancing columns
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: KNNGiST for knn-search (WIP)