Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column

Поиск
Список
Период
Сортировка
От Frédéric Yhuel
Тема Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column
Дата
Msg-id 95e298e6-fdeb-4687-97cf-27942c1f0856@dalibo.com
обсуждение исходный текст
Ответ на Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance

On 6/5/25 23:52, Tom Lane wrote:
> The idea of treating lack of MCELEM differently from complete
> lack of stats still seems to have merit, though.


Couldn't we count / estimate the number of distinct two-by-two elements, 
and use that instead of the default selectivity estimate?



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