Thread: pgsql/src include/optimizer/clauses.h backend/ ...

pgsql/src include/optimizer/clauses.h backend/ ...

From
tgl@postgresql.org
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    tgl@postgresql.org    01/12/10 17:54:12

Modified files:
    src/include/optimizer: clauses.h
    src/backend/optimizer/util: clauses.c
    src/backend/optimizer/plan: planner.c
    src/backend/optimizer/path: allpaths.c

Log message:
    Suppress subquery pullup and pushdown when the subquery has any
    set-returning functions in its target list.  This ensures that we
    won't rewrite the query in a way that places set-returning functions
    into quals (WHERE clauses).  Cf. bug reports from Joe Conway.