aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2015-12-14 20:05:55 -0500
committerStephen Frost <sfrost@snowman.net>2015-12-14 20:05:55 -0500
commit651e2ba74af997c2952672397828636dc6c6d017 (patch)
tree043a05574617e2c26d1f6ab91da3a8d84bfa9293 /src/backend/executor/nodeFunctionscan.c
parent2c24f0f092acb59184c3a3ace4b6cea4ff308328 (diff)
downloadpostgresql-651e2ba74af997c2952672397828636dc6c6d017.tar.gz
postgresql-651e2ba74af997c2952672397828636dc6c6d017.zip
Collect the global OR of hasRowSecurity flags for plancache
We carry around information about if a given query has row security or not to allow the plancache to use that information to invalidate a planned query in the event that the environment changes. Previously, the flag of one of the subqueries was simply being copied into place to indicate if the query overall included RLS components. That's wrong as we need the global OR of all subqueries. Fix by changing the code to match how fireRIRules works, which is results in OR'ing all of the flags. Noted by Tom. Back-patch to 9.5 where RLS was introduced.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions