1DROP RULE() SQL Commands DROP RULE()
2
3
4
6 DROP RULE - remove a rewrite rule
7
8
10 DROP RULE [ IF EXISTS ] name ON relation [ CASCADE | RESTRICT ]
11
12
14 DROP RULE drops a rewrite rule.
15
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
35 To drop the rewrite rule newrule:
36
37 DROP RULE newrule ON mytable;
38
39
41 There is no DROP RULE statement in the SQL standard.
42
44 CREATE RULE [create_rule(7)]
45
46
47
48SQL - Language Statements 2008-06-08 DROP RULE()