Skip to content
Snippets Groups Projects
  • Kevin Grittner's avatar
    a9d0f1cf
    Fix superuser concurrent refresh of matview owned by another. · a9d0f1cf
    Kevin Grittner authored
    Use SECURITY_LOCAL_USERID_CHANGE while building temporary tables;
    only escalate to SECURITY_RESTRICTED_OPERATION while potentially
    running user-supplied code.  The more secure mode was preventing
    temp table creation.  Add regression tests to cover this problem.
    
    This fixes Bug #11208 reported by Bruno Emanuel de Andrade Silva.
    
    Backpatch to 9.4, where the bug was introduced.
    a9d0f1cf
    History
    Fix superuser concurrent refresh of matview owned by another.
    Kevin Grittner authored
    Use SECURITY_LOCAL_USERID_CHANGE while building temporary tables;
    only escalate to SECURITY_RESTRICTED_OPERATION while potentially
    running user-supplied code.  The more secure mode was preventing
    temp table creation.  Add regression tests to cover this problem.
    
    This fixes Bug #11208 reported by Bruno Emanuel de Andrade Silva.
    
    Backpatch to 9.4, where the bug was introduced.