DROP POLICY
Synopsis
DROP POLICY
removes the specified row level security policy from the table. Note that if allpolicies for a table are removed and the table still has ENABLE ROW LEVEL SECURITY
, then a defaultdeny all policy will be applied for the table.
Syntax
drop_policy ::= DROP POLICY [ IF EXISTS ] name ON table_name
[ CASCADE | RESTRICT ]
drop_policy
Where
name
is the name of the policy to be removed.table_name
is the name of the table that the policy is on.CASCADE
/RESTRICT
don’t have any effect since table policies don’t have any dependencies.
Example
- Drop a policy.
yugabyte=# DROP POLICY p1 ON table_foo;
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .