pgsql: Fix set_joinrel_size_estimates() to estimate outer-join sizes

Lists: pgsql-committers
From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix set_joinrel_size_estimates() to estimate outer-join sizes
Date: 2006-11-10 01:21:41
Message-ID: 20061110012141.56D7E9FB256@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Log Message:
-----------
Fix set_joinrel_size_estimates() to estimate outer-join sizes more
accurately: we have to distinguish the effects of the join's own ON
clauses from the effects of pushed-down clauses. Failing to do so
was a quick hack long ago, but it's time to be smarter. Per example
from Thomas H.

Modified Files:
--------------
pgsql/src/backend/optimizer/path:
costsize.c (r1.167 -> r1.168)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/costsize.c.diff?r1=1.167&r2=1.168)