]> granicus.if.org Git - postgresql/commit
Ensure locks are acquired on RLS-added relations
authorStephen Frost <sfrost@snowman.net>
Fri, 28 Aug 2015 15:39:37 +0000 (11:39 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 28 Aug 2015 15:39:37 +0000 (11:39 -0400)
commit2ba9e2b778af7a8d040283db6cee11fb03cf9f4a
treed6ed8254abb2cb191a2acd0019120d5c651182f4
parentc0f0d8097be17ae7f03fc79f622e9c95026b338a
Ensure locks are acquired on RLS-added relations

During fireRIRrules(), get_row_security_policies can add to
securityQuals and withCheckOptions.  Make sure to lock any relations
added at that point and before firing RIR rules on those expressions.

Back-patch to 9.5 where RLS was added.
src/backend/rewrite/rewriteHandler.c