Fix pull_up_simple_union_all to copy all rtable entries from child subquery to
authorHeikki Linnakangas <heikki@enterprisedb.com>
Thu, 14 Aug 2008 20:32:11 +0000 (20:32 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Thu, 14 Aug 2008 20:32:11 +0000 (20:32 +0000)
commit4b0f6daf8f31c01913e5166a5ac0945695562a3b
treecb78a92cde6ec093053ae906b5ed39d990497fcb
parent6efc5679ef841698110f9cda272719aafd4e9970
Fix pull_up_simple_union_all to copy all rtable entries from child subquery to
parent, not only those with RangeTblRefs. We need them in ExecCheckRTPerms.

Report by Brendan O'Shea. Back-patch to 8.2, where pull_up_simple_union_all
was introduced.
src/backend/optimizer/prep/prepjointree.c
src/backend/rewrite/rewriteManip.c
src/include/rewrite/rewriteManip.h