SQL Reference Contents

NAME

drop rule - removes a current rule from Postgres

SYNOPSIS

drop rule rule_name

DESCRIPTION

This command drops the rule named rule_name from the specified Postgres rule system. Postgres will immediately cease enforcing it and will purge its definition from the system catalogs.

EXAMPLE

--
--This example drops the rewrite rule example_1
--
drop rule example_1

SEE ALSO

create rule(l) , drop view(l) .

BUGS

Once a rule is dropped, access to historical information the rule has written may disappear.


Table of Contents