Re: Incorrect estimation of HashJoin rows resulted from inaccurate small table statistics

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: Incorrect estimation of HashJoin rows resulted from inaccurate small table statistics
Дата
Msg-id bc6251af-266a-1a42-d069-29cbf5a1cd8a@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Incorrect estimation of HashJoin rows resulted from inaccurate small table statistics  (Quan Zongliang <quanzongliang@yeah.net>)
Список pgsql-hackers
On 6/17/23 00:32, Quan Zongliang wrote:
> ...
>
> It's not just a small table. If a column's value is nearly unique. It
> also causes the same problem because we exclude values that occur only
> once. samplerows <= num_mcv just solves one scenario.
> Perhaps we should discard this (dups cnt > 1) restriction?
> 

But for larger tables we'll be unable to keep all the values in the MCV.
So I think this only can change things for tiny tables.


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Subscription statistics are not dropped at DROP SUBSCRIPTION in some cases
Следующее
От: jian he
Дата:
Сообщение: Re: Deleting prepared statements from libpq.