Skip site navigation (1) Skip section navigation (2)

pgsql: Fix planner to do the right thing when a degenerate outer join

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix planner to do the right thing when a degenerate outer join
Date: 2006-12-12 21:31:03
Message-ID: 20061212213103.149CB9FB274@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix planner to do the right thing when a degenerate outer join (one whose
joinclause doesn't use any outer-side vars) requires a "bushy" plan to be
created.  The normal heuristic to avoid joins with no joinclause has to be
overridden in that case.  Problem is new in 8.2; before that we forced the
outer join order anyway.  Per example from Teodor.

Modified Files:
--------------
    pgsql/src/backend/optimizer/geqo:
        geqo_eval.c (r1.81 -> r1.82)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/geqo/geqo_eval.c.diff?r1=1.81&r2=1.82)
    pgsql/src/backend/optimizer/path:
        joinrels.c (r1.81 -> r1.82)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/joinrels.c.diff?r1=1.81&r2=1.82)
    pgsql/src/backend/optimizer/util:
        joininfo.c (r1.44 -> r1.45)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/joininfo.c.diff?r1=1.44&r2=1.45)
    pgsql/src/include/optimizer:
        joininfo.h (r1.31 -> r1.32)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/optimizer/joininfo.h.diff?r1=1.31&r2=1.32)

pgsql-committers by date

Next:From: Tom LaneDate: 2006-12-12 21:31:09
Subject: pgsql: Fix planner to do the right thing when a degenerate outer join
Previous:From: Bruce MomjianDate: 2006-12-12 21:30:41
Subject: pgsql: Document that log_line_prefix %t does not print timezone on

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group