Обсуждение: pgsql: Don't try to optimize EXISTS subqueries with empty FROM-lists: we

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

pgsql: Don't try to optimize EXISTS subqueries with empty FROM-lists: we

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Don't try to optimize EXISTS subqueries with empty FROM-lists: we need to
form a join and that case doesn't have anything to join to.  (We could
probably make it work if we didn't pull up the subquery, but it seems to
me that the case isn't worth extra code.)  Per report from Greg Stark.

Modified Files:
--------------
    pgsql/src/backend/optimizer/plan:
        subselect.c (r1.142 -> r1.143)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/subselect.c?r1=1.142&r2=1.143)