• Robert Haas's avatar
    Centralize DML permissions-checking logic. · b8c6c71d
    Robert Haas authored
    Remove bespoke code in DoCopy and RI_Initial_Check, which now instead
    fabricate call ExecCheckRTPerms with a manufactured RangeTblEntry.
    This is intended to make it feasible for an enhanced security provider
    to actually make use of ExecutorCheckPerms_hook, but also has the
    advantage that RI_Initial_Check can allow use of the fast-path when
    column-level but not table-level permissions are present.
    
    KaiGai Kohei.  Reviewed (in an earlier version) by Stephen Frost, and by me.
    Some further changes to the comments by me.
    b8c6c71d
executor.h 13.4 KB