pgsql: Improve planner's estimation of the size of an append relation:

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve planner's estimation of the size of an append relation:
Date: 2008-06-27 03:56:55
Message-ID: 20080627035655.80207754857@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Improve planner's estimation of the size of an append relation: rather than
taking the maximum of any child rel's width, we should weight the widths
proportionally to the number of rows expected from each child. In hindsight
this is obviously correct because row width is really a proxy for the total
physical size of the relation. Per discussion with Scott Carey (bug #4264).

Modified Files:
--------------
pgsql/src/backend/optimizer/path:
allpaths.c (r1.170 -> r1.171)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/allpaths.c?r1=1.170&r2=1.171)
pgsql/src/backend/optimizer/plan:
createplan.c (r1.240 -> r1.241)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/createplan.c?r1=1.240&r2=1.241)

Browse pgsql-committers by date

  From Date Subject
Next Message User Mkz 2008-06-27 08:35:35 plproxy - plproxy: Scanner/parser portability changes.
Previous Message Bruce Momjian 2008-06-27 02:44:32 pgsql: Mention actual function names in documentation of how to pass