• Stephen Frost's avatar
    Ensure locks are acquired on RLS-added relations · 2ba9e2b7
    Stephen Frost authored
    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.
    2ba9e2b7
rewriteHandler.c 108 KB