Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column - Mailing list pgsql-performance

From Frédéric Yhuel
Subject Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column
Date
Msg-id 95e298e6-fdeb-4687-97cf-27942c1f0856@dalibo.com
Whole thread Raw
In response to Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column
Next
From: Mark Frost
Date:
Subject: RE: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column