2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_domain.sgml,v 1.1 2002/03/06 20:34:44 momjian Exp $
3 PostgreSQL documentation
6 <refentry id="SQL-DROPDOMAIN">
8 <refentrytitle id="SQL-DROPDOMAIN-TITLE">
11 <refmiscinfo>SQL - Language Statements</refmiscinfo>
18 remove a user-defined domain
23 <date>1999-07-20</date>
26 DROP DOMAIN <replaceable class="PARAMETER">domainname</replaceable> [, ...]
29 <refsect2 id="R2-SQL-DROPDOMAIN-1">
31 <date>2002-02-24</date>
39 <term><replaceable class="PARAMETER">domainname</replaceable></term>
42 The name of an existing domain.
50 <refsect2 id="R2-SQL-DROPDOMAIN-2">
52 <date>2002-02-24</date>
60 <term><computeroutput>
62 </computeroutput></term>
65 The message returned if the command is successful.
70 <term><computeroutput>
71 ERROR: RemoveDomain: type '<replaceable class="parameter">domainname</replaceable>' does not exist
72 </computeroutput></term>
75 This message occurs if the specified domain (or type) is not found.
84 <refsect1 id="R1-SQL-DROPDOMAIN-1">
86 <date>2002-02-24</date>
92 <command>DROP DOMAIN</command> will remove a user domain from the
96 Only the owner of a domain can remove it.
100 <refsect1 id="SQL-DROPDOMAIN-notes">
106 It is the user's responsibility to remove any operators,
107 functions, aggregates, access methods, and tables that
108 use a deleted domain.
114 <refsect1 id="SQL-DROPDOMAIN-examples">
115 <title>Examples</title>
117 To remove the <type>box</type> domain:
120 DROP DOMAIN box RESTRICT;
125 <refsect1 id="SQL-DROPDOMAIN-compatibility">
126 <title>Compatibility</title>
129 A <command>DROP DOMAIN</command> statement exists in SQL99. As with
130 most other <quote>drop</quote> commands, <command>DROP
131 DOMAIN</command> in SQL99 requires a <quote>drop behavior</quote>
132 clause to select between dropping all dependent objects or refusing
133 to drop if dependent objects exist:
135 DROP DOMAIN <replaceable>name</replaceable> { CASCADE | RESTRICT }
137 <productname>PostgreSQL</productname> enforces the existance of
138 RESTRICT or CASCADE but ignores their enforcement against the
143 <refsect1 id="SQL-DROPDOMAIN-see-also">
144 <title>See Also</title>
146 <simplelist type="inline">
147 <member><xref linkend="sql-createdomain"></member>
152 <!-- Keep this comment at the end of the file
157 sgml-minimize-attributes:nil
158 sgml-always-quote-attributes:t
161 sgml-parent-document:nil
162 sgml-default-dtd-file:"../reference.ced"
163 sgml-exposed-tags:nil
164 sgml-local-catalogs:"/usr/lib/sgml/catalog"
165 sgml-local-ecat-files:nil