• Stephen Frost's avatar
    RLS refactoring · 22eaf35c
    Stephen Frost authored
    This refactors rewrite/rowsecurity.c to simplify the handling of the
    default deny case (reducing the number of places where we check for and
    add the default deny policy from three to one) by splitting up the
    retrival of the policies from the application of them.
    
    This also allowed us to do away with the policy_id field.  A policy_name
    field was added for WithCheckOption policies and is used in error
    reporting, when available.
    
    Patch by Dean Rasheed, with various mostly cosmetic changes by me.
    
    Back-patch to 9.5 where RLS was introduced to avoid unnecessary
    differences, since we're still in alpha, per discussion with Robert.
    22eaf35c
parsenodes.h 102 KB