11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.6 2002/12 /0616:40:13 momjian Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.7 2003/01 /0600:31:44 tgl Exp $
33PostgreSQL documentation
44-->
55
@@ -29,6 +29,8 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
2929 ADD <replaceable class="PARAMETER">domain_constraint</replaceable>
3030ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
3131 DROP CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable> [ RESTRICT | CASCADE ]
32+ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
33+ OWNER TO <replaceable class="PARAMETER">new_owner</replaceable>
3234 </synopsis>
3335
3436 <refsect2 id="R2-SQL-ALTERDOMAIN-1">
@@ -73,7 +75,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
7375 <term>CASCADE</term>
7476 <listitem>
7577 <para>
76- Automatically drop objects that depend constraint.
78+ Automatically drop objects that dependon the constraint.
7779 </para>
7880 </listitem>
7981 </varlistentry>
@@ -88,6 +90,15 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
8890 </listitem>
8991 </varlistentry>
9092
93+ <varlistentry>
94+ <term><replaceable class="PARAMETER">new_owner</replaceable></term>
95+ <listitem>
96+ <para>
97+ The user name of the new owner of the domain.
98+ </para>
99+ </listitem>
100+ </varlistentry>
101+
91102 </variablelist>
92103 </para>
93104 </refsect2>
@@ -141,9 +152,9 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
141152 <term>SET/DROP DEFAULT</term>
142153 <listitem>
143154 <para>
144- These forms set or remove the default value for acolumn . Note
155+ These forms set or remove the default value for adomain . Note
145156 that defaults only apply to subsequent <command>INSERT</command>
146- commands; they do notcause rows already in a table using the domain.
157+ commands; they do notaffect rows already in a table using the domain.
147158 </para>
148159 </listitem>
149160 </varlistentry>
@@ -154,8 +165,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
154165 <para>
155166 These forms change whether a domain is marked to allow NULL
156167 values or to reject NULL values. You may only <literal>SET NOT NULL</>
157- when the tables using the domain contain no null values in the domain
158- based column.
168+ when the columns using the domain contain no null values.
159169 </para>
160170 </listitem>
161171 </varlistentry>
@@ -164,8 +174,10 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
164174 <term>ADD <replaceable class="PARAMETER">domain_constraint</replaceable></term>
165175 <listitem>
166176 <para>
167- This form adds a new constraint to a table using the same syntax as
168- <xref linkend="SQL-CREATEDOMAIN" endterm="SQL-CREATEDOMAIN-TITLE">.
177+ This form adds a new constraint to a domain using the same syntax as
178+ <xref linkend="SQL-CREATEDOMAIN" endterm="SQL-CREATEDOMAIN-TITLE">.
179+ This will only succeed if all columns using the domain satisfy the
180+ new constraint.
169181 </para>
170182 </listitem>
171183 </varlistentry>
@@ -179,11 +191,19 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
179191 </listitem>
180192 </varlistentry>
181193
194+ <varlistentry>
195+ <term>OWNER</term>
196+ <listitem>
197+ <para>
198+ This form changes the owner of the domain to the specified user.
199+ </para>
200+ </listitem>
201+ </varlistentry>
182202 </variablelist>
183203
184204 <para>
185205 You must own the domain to use <command>ALTER DOMAIN</>; except for
186- <command>ALTERTABLE OWNER</>, which may only be executed by a superuser.
206+ <command>ALTERDOMAIN OWNER</>, which may only be executed by a superuser.
187207 </para>
188208 </refsect1>
189209