1DROP DOMAIN(7) SQL Commands DROP DOMAIN(7)
2
3
4
6 DROP DOMAIN - remove a domain
7
8
10 DROP DOMAIN [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
11
12
14 DROP DOMAIN removes a domain. Only the owner of a domain can remove it.
15
17 IF EXISTS
18 Do not throw an error if the domain does not exist. A notice is
19 issued in this case.
20
21 name The name (optionally schema-qualified) of an existing domain.
22
23 CASCADE
24 Automatically drop objects that depend on the domain (such as
25 table columns).
26
27 RESTRICT
28 Refuse to drop the domain if any objects depend on it. This is
29 the default.
30
32 To remove the domain box:
33
34 DROP DOMAIN box;
35
36
38 This command conforms to the SQL standard, except for the IF EXISTS
39 option, which is a PostgreSQL extension.
40
42 CREATE DOMAIN [create_domain(7)], ALTER DOMAIN [alter_domain(7)]
43
44
45
46SQL - Language Statements 2014-02-17 DROP DOMAIN(7)