]> begriffs open source - ai-pg/blob - full-docs/txt/sql-dropdomain.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-dropdomain.txt
1
2 DROP DOMAIN
3
4    DROP DOMAIN — remove a domain
5
6 Synopsis
7
8 DROP DOMAIN [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP DOMAIN removes a domain. Only the owner of a domain can remove it.
13
14 Parameters
15
16    IF EXISTS
17           Do not throw an error if the domain does not exist. A notice is
18           issued in this case.
19
20    name
21           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), and in turn all objects that depend on those
26           objects (see Section 5.15).
27
28    RESTRICT
29           Refuse to drop the domain if any objects depend on it. This is
30           the default.
31
32 Examples
33
34    To remove the domain box:
35 DROP DOMAIN box;
36
37 Compatibility
38
39    This command conforms to the SQL standard, except for the IF EXISTS
40    option, which is a PostgreSQL extension.
41
42 See Also
43
44    CREATE DOMAIN, ALTER DOMAIN