• R
    Improve behavior of concurrent CLUSTER. · cbe24a6d
    Robert Haas 提交于
    In the previous coding, a user could queue up for an AccessExclusiveLock
    on a table they did not have permission to cluster, thus potentially
    interfering with access by authorized users who got stuck waiting behind
    the AccessExclusiveLock.  This approach avoids that.  cluster() has the
    same permissions-checking requirements as REINDEX TABLE, so this commit
    moves the now-shared callback to tablecmds.c and renames it, per
    discussion with Noah Misch.
    cbe24a6d
tablecmds.c 296.6 KB