pgsql: Fix an oversight in mergejoin planning: the planner would reject - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix an oversight in mergejoin planning: the planner would reject
Date
Msg-id 20060817170637.EA7939FB25B@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix an oversight in mergejoin planning: the planner would reject a
mergejoin possibility where the inner rel was less well sorted than
the outer (ie, it matches some but not all of the merge clauses that
can work with the outer), if the inner path in question is also the
overall cheapest path for its rel.  This is an old bug, but I'm not
sure it's worth back-patching, because it's such a corner case.
Noted while investigating a test case from Peter Hardman.

Modified Files:
--------------
    pgsql/src/backend/optimizer/path:
        joinpath.c (r1.105 -> r1.106)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/joinpath.c.diff?r1=1.105&r2=1.106)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Teach convert_subquery_pathkeys() to handle the case where the
Next
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Produce a clean failure in configure when dtrace is selected but