]> granicus.if.org Git - postgresql/commit
Fix add_rte_to_flat_rtable() for recent feature additions.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Jul 2015 00:03:58 +0000 (20:03 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Jul 2015 00:03:58 +0000 (20:03 -0400)
commit46d0a9bfac3d5221702318cc1cf119221d729c84
tree8ad95b8fad968f693e24f17d49969d19851d35d4
parentc6fbe6d6fb828f50b9d67627588eb5ab8bd25e47
Fix add_rte_to_flat_rtable() for recent feature additions.

The TABLESAMPLE and row security patches each overlooked this function,
though their errors of omission were opposite: RLS failed to zero out the
securityQuals field, leading to wasteful copying of useless expression
trees in finished plans, while TABLESAMPLE neglected to add a comment
saying that it intentionally *isn't* deleting the tablesample subtree.
There probably should be a similar comment about ctename, too.

Back-patch as appropriate.
src/backend/optimizer/plan/setrefs.c