Drops an existing table, or a list of tables. The command will fail if dependent objects exist and the RESTRICT clause is used (the default). All dependent views and constraints are dropped as well if ...
IF EXISTS (SELECT 1 FROM pg_policies WHERE policyname = 'Allow full access to own models') THEN DROP POLICY "Allow full access to own models" ON models; IF EXISTS (SELECT 1 FROM pg_policies WHERE ...