pub fn lock_table_allowed(
relid: u32,
role: u32,
mode: i32,
session: &dyn Session,
) -> Result<bool>Expand description
LockTableAclCheck: true when role can lock the relation relid in the lock mode mode, where AccessShareLock is 1. MAINTAIN, UPDATE, DELETE and TRUNCATE allow each mode, SELECT allows ACCESS SHARE, and INSERT allows the modes up to ROW EXCLUSIVE.
ยงErrors
The error of an ACL that is not correct.