pgsql: Ensure locks are acquired on RLS-added relations - Mailing list pgsql-committers

From Stephen Frost
Subject pgsql: Ensure locks are acquired on RLS-added relations
Date
Msg-id E1ZVLl9-00036m-38@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2ba9e2b778af7a8d040283db6cee11fb03cf9f4a

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c |   19 +++++++++++++++++++
1 file changed, 19 insertions(+)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: pgsql: Ensure locks are acquired on RLS-added relations
Next
From: Tom Lane
Date:
Subject: pgsql: Fix s_lock.h PPC assembly code to be compatible with native AIX