1DROP RULE(7)            PostgreSQL 9.2.24 Documentation           DROP RULE(7)
2
3
4

NAME

6       DROP_RULE - remove a rewrite rule
7

SYNOPSIS

9       DROP RULE [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]
10

DESCRIPTION

12       DROP RULE drops a rewrite rule.
13

PARAMETERS

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

EXAMPLES

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

COMPATIBILITY

39       There is no DROP RULE statement in the SQL standard.
40

SEE ALSO

42       CREATE RULE (CREATE_RULE(7))
43
44
45
46PostgreSQL 9.2.24                 2017-11-06                      DROP RULE(7)
Impressum