4 DROP POLICY — remove a row-level security policy from a table
8 DROP POLICY [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]
12 DROP POLICY removes the specified policy from the table. Note that if
13 the last policy is removed for a table and the table still has
14 row-level security enabled via ALTER TABLE, then the default-deny
15 policy will be used. ALTER TABLE ... DISABLE ROW LEVEL SECURITY can be
16 used to disable row-level security for a table, whether policies for
17 the table exist or not.
22 Do not throw an error if the policy does not exist. A notice is
26 The name of the policy to drop.
29 The name (optionally schema-qualified) of the table that the
34 These key words do not have any effect, since there are no
35 dependencies on policies.
39 To drop the policy called p1 on the table named my_table:
40 DROP POLICY p1 ON my_table;
44 DROP POLICY is a PostgreSQL extension.
48 CREATE POLICY, ALTER POLICY