Re: Problems with estimating OR conditions, IS NULL on LEFT JOINs - Mailing list pgsql-hackers

From Andrei Lepikhov
Subject Re: Problems with estimating OR conditions, IS NULL on LEFT JOINs
Date
Msg-id c15ffae1-0786-4aff-8e93-00675d6d3dc5@gmail.com
Whole thread Raw
In response to Re: Problems with estimating OR conditions, IS NULL on LEFT JOINs  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
List pgsql-hackers
On 6/24/23 13:23, Tomas Vondra wrote:
> I really hope what I just wrote makes at least a little bit of sense.
Here is a continuation of your work:
1. non-matched estimation sophisticated to provide meaningful numbers.
2. unmatched_frac is stored in sjinfo that let us to summarise these 
generated nulls along the tree of outer joins.
3. unmatched_frac is used not only for nulltest estimation but also for 
correction of stanullfrac and stadistinct values (improves GROUP-BY).
4. EXPLAIN prints number of estimated and actually generated NULLs in 
outer-join nodes.

This patch no less ugly than your, may be even more. Tambien, not sure 
it became more meaningful. But it helps being applied to some reported 
cases I have ;).

-- 
regards, Andrei Lepikhov
Attachment

pgsql-hackers by date:

Previous
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Fix slot synchronization with two_phase decoding enabled
Next
From: "Tristan Partin"
Date:
Subject: Re: Decouple C++ support in Meson's PGXS from LLVM enablement