pgsql: Fix add_rte_to_flat_rtable() for recent feature additions. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix add_rte_to_flat_rtable() for recent feature additions.
Date
Msg-id E1ZHhW5-0006JC-5S@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b6e7780346bae5fe07bd4631d355e692e1a8d006

Modified Files
--------------
src/backend/optimizer/plan/setrefs.c |    9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Add selectivity estimation functions for intarray operators.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix add_rte_to_flat_rtable() for recent feature additions.