Fix pull_up_simple_union_all to copy all rtable entries from child subquery to

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 763312d73d54b1a8931ae3f296ec506221fb89ef
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2008-08-14T20:31:59Z
Releases: 8.3.4
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.

Files