Thread: pgsql/src/backend/rewrite Tag: REL7_1_STABLE r ...

pgsql/src/backend/rewrite Tag: REL7_1_STABLE r ...

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

Modified files:
    src/backend/rewrite: Tag: REL7_1_STABLE 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.