pgsql: Ensure locks are acquired on RLS-added relations

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ensure locks are acquired on RLS-added relations
Date: 2015-08-28 15:40:07
Message-ID: E1ZVLl9-00036m-38@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2015-08-28 21:12:00 Adding commit details to SGML release notes
Previous Message Andres Freund 2015-08-28 14:30:29 pgsql: Clarify what some historic terms in rewriteHandler.c mean.