1DROP RULE(7)                     SQL Commands                     DROP RULE(7)
2
3
4

NAME

6       DROP RULE - remove a rewrite rule
7
8

SYNOPSIS

10       DROP RULE [ IF EXISTS ] name ON relation [ CASCADE | RESTRICT ]
11
12

DESCRIPTION

14       DROP RULE drops a rewrite rule.
15

PARAMETERS

17       IF EXISTS
18              Do  not  throw  an error if the rule does not exist. A notice is
19              issued in this case.
20
21       name   The name of the rule to drop.
22
23       relation
24              The name (optionally schema-qualified) of the table or view that
25              the rule applies to.
26
27       CASCADE
28              Automatically drop objects that depend on the rule.
29
30       RESTRICT
31              Refuse to drop the rule if any objects depend on it. This is the
32              default.
33

EXAMPLES

35       To drop the rewrite rule newrule:
36
37       DROP RULE newrule ON mytable;
38
39

COMPATIBILITY

41       There is no DROP RULE statement in the SQL standard.
42

SEE ALSO

44       CREATE RULE [create_rule(7)]
45
46
47
48SQL - Language Statements         2014-02-17                      DROP RULE(7)
Impressum