January 2002
Intermediate to advanced
640 pages
16h 39m
English
Removes a rule from a database.
DROP RULE name [, ...]nameThe name of an existing rule to drop. You may drop multiple rules by specifying their names in a comma-delimited list.
DROPThe message returned when a rule is dropped successfully.
ERROR: Rule or view "name" not foundThe error returned if the specified rule name
does not exist.
Use the DROP RULE command to remove a rule from a PostgreSQL database.
When a rule is dropped, the change is effective immediately. A rule becomes unavailable as
soon as it is dropped, and its definition is completely removed from the database
system.
The following example drops the sync_stock_with_editions rule:
booktown=# DROP RULE sync_stock_with_editions;
DROP