]> granicus.if.org Git - postgresql/commit
Fix pull_up_simple_union_all to copy all rtable entries from child subquery to
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 14 Aug 2008 20:31:59 +0000 (20:31 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 14 Aug 2008 20:31:59 +0000 (20:31 +0000)
commit763312d73d54b1a8931ae3f296ec506221fb89ef
tree74890916c94d359b4397eb7a6d4efabcefaafa3c
parente9ec4bbffe1102bd1818a69ac9abf942bc17498f
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