Revert some changes from the INTERSECT/EXPECT patch that broke

Jan Wieck <JanWieck@Yahoo.com>

Commit: 566c712c58027ce3180b94a7b6b48f999a727525
Author: Jan Wieck <JanWieck@Yahoo.com>
Date: 1999-02-08T01:39:46Z
Releases: 7.1.1
Revert some changes from the INTERSECT/EXPECT patch that broke
rule system semantics by having Var nodes referenced across multiple
parsetrees when rules split them.

Added more tests to the rules regression test.

The code in question resulted from v6.3 based development and was
a little careless applied to the v6.5 source tree.

Jan

Files

PathChange+/−
src/backend/rewrite/rewriteManip.c modified +20 −10
src/test/regress/expected/rules.out modified +215 −0
src/test/regress/sql/rules.sql modified +172 −0