3 PostgreSQL documentation
6 <refentry id=
"SQL-DROPDOMAIN">
8 <refentrytitle id=
"SQL-DROPDOMAIN-TITLE">DROP DOMAIN
</refentrytitle>
9 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
13 <refname>DROP DOMAIN
</refname>
14 <refpurpose>remove a domain
</refpurpose>
17 <indexterm zone=
"sql-dropdomain">
18 <primary>DROP DOMAIN
</primary>
23 DROP DOMAIN [ IF EXISTS ]
<replaceable class=
"PARAMETER">name
</replaceable> [, ...] [ CASCADE | RESTRICT ]
28 <title>Description
</title>
31 <command>DROP DOMAIN
</command> removes a domain. Only the owner of
32 a domain can remove it.
37 <title>Parameters
</title>
41 <term><literal>IF EXISTS
</literal></term>
44 Do not throw an error if the domain does not exist. A notice is issued
51 <term><replaceable class=
"PARAMETER">name
</replaceable></term>
54 The name (optionally schema-qualified) of an existing domain.
60 <term><literal>CASCADE<
/></term>
63 Automatically drop objects that depend on the domain (such as
70 <term><literal>RESTRICT<
/></term>
73 Refuse to drop the domain if any objects depend on it. This is
81 <refsect1 id=
"SQL-DROPDOMAIN-examples">
82 <title>Examples
</title>
85 To remove the domain
<type>box
</type>:
93 <refsect1 id=
"SQL-DROPDOMAIN-compatibility">
94 <title>Compatibility
</title>
97 This command conforms to the SQL standard, except for the
98 <literal>IF EXISTS<
/> option, which is a
<productname>PostgreSQL<
/>
103 <refsect1 id=
"SQL-DROPDOMAIN-see-also">
104 <title>See Also
</title>
106 <simplelist type=
"inline">
107 <member><xref linkend=
"sql-createdomain" endterm=
"sql-createdomain-title"></member>
108 <member><xref linkend=
"sql-alterdomain" endterm=
"sql-alterdomain-title"></member>