Fix pull_up_simple_union_all to copy all rtable entries from child subquery to

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: f24f233f6a9fb3af211c2fc658c5068e63593a8c
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2008-08-14T20:31:29Z
Releases: 8.4.0
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