Обсуждение: pgsql: Fix an oversight in mergejoin planning: the planner would reject

Поиск
Список
Период
Сортировка

pgsql: Fix an oversight in mergejoin planning: the planner would reject

От
tgl@postgresql.org (Tom Lane)
Дата:
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)