]> 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)
commit41ae3b74d987d5d42f2c432812285c7d12d6f4c1
treeec0f31e6349189063ef0fdb833e403f9a8ccf169
parent35ac618a7c4602b792160ae0d77b6dfb289f517e
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