Re: [HACKERS] estimation for join results cardinality is sometimes more than the product of the downstream nodes' - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] estimation for join results cardinality is sometimes more than the product of the downstream nodes'
Date
Msg-id 5897.1500993692@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] estimation for join results cardinality is sometimes more than theproduct of the downstream nodes'  (Alexey Bashtanov <bashtanov@imap.cc>)
List pgsql-hackers
Alexey Bashtanov <bashtanov@imap.cc> writes:
> Is there a reason that join cardinality estimates are not limited by the 
> product of the joined parts cardinalities like in the 
> join-card-est.patch attached?

Because that would be giving an unfair advantage to some paths over
others based on nothing except estimation errors.  I do not think we'd
get a net benefit in plan quality.

If we could do this earlier and adjust the join relation's overall
cardinality estimate, it might be something to consider.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] pl/perl extension fails on Windows
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] Testlib.pm vs msys