Re: Incorrect assumptions with low LIMITs

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Incorrect assumptions with low LIMITs
Дата
Msg-id 1331933968.5271.127.camel@sussancws0025
обсуждение исходный текст
Ответ на Incorrect assumptions with low LIMITs  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Incorrect assumptions with low LIMITs
Список pgsql-hackers
On Fri, 2012-03-16 at 18:25 +0000, Simon Riggs wrote:
> Any time we apply a LIMIT clause to a plan with a SeqScan or
> unqualified IndexScan, we shouldn't assume the scan will do less than
> say 10% of the table. It might, but its an unsafe assumption because
> as the selectivity decreases so does the safety of the assumption that
> rows are uniformly distributed.

Just trying to follow along. You mean "as the selectivity _increases_
the safety of the assumption that the rows are uniformly distributed
decreases", right?

Regards,Jeff Davis



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Command Triggers, patch v11
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Command Triggers, patch v11