Thread: pgsql/src/backend/rewrite rewriteHandler.c

pgsql/src/backend/rewrite rewriteHandler.c

From
Tom Lane
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/06/12 14:54:23

Modified files:
    src/backend/rewrite: rewriteHandler.c

Log message:
    Repair problem with multi-action rules in combination with any nontrivial
    manipulation of rtable/jointree by planner.  Rewriter was generating
    actions that shared rtable/jointree substructure, which caused havoc
    when planner got to the later actions that it'd already mucked up.