On 1/22/22 01:34, Tomas Vondra wrote:
>
I rebased (with minor fixes) this patch onto current master.
Also, second patch dedicated to a problem of "varno 0" (fake_var).
I think, this case should make the same estimations as in the case of
varno != 0, but no any stats found. So I suppose to restrict number of
groups with min of a number of incoming tuples and DEFAULT_NUM_DISTINCT
value.
--
regards,
Andrey Lepikhov
Postgres Professional