]> 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:32:11 +0000 (20:32 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 14 Aug 2008 20:32:11 +0000 (20:32 +0000)
commitf44f0ea87cf2a8c9b8b2bc250c92133e048f7c0c
tree80278d8b30c7f408616420e517d64e3f8b027845
parent1a3970f7fafe9e60a34b3fef88b8a3c7c1fb58e6
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