1DROP RULE(7)             PostgreSQL 11.3 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, and in turn all
28           objects that depend on those objects (see Section 5.13).
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

COMPATIBILITY

40       DROP RULE is a PostgreSQL language extension, as is the entire query
41       rewrite system.
42

SEE ALSO

44       CREATE RULE (CREATE_RULE(7)), ALTER RULE (ALTER_RULE(7))
45
46
47
48PostgreSQL 11.3                      2019                         DROP RULE(7)
Impressum