1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.6 2002/12 /06 16:40:13 momjian Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.7 2003/01 /06 00:31:44 tgl Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -29,6 +29,8 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
29
29
ADD <replaceable class="PARAMETER">domain_constraint</replaceable>
30
30
ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
31
31
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>
32
34
</synopsis>
33
35
34
36
<refsect2 id="R2-SQL-ALTERDOMAIN-1">
@@ -73,7 +75,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
73
75
<term>CASCADE</term>
74
76
<listitem>
75
77
<para>
76
- Automatically drop objects that depend constraint.
78
+ Automatically drop objects that depend on the constraint.
77
79
</para>
78
80
</listitem>
79
81
</varlistentry>
@@ -88,6 +90,15 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
88
90
</listitem>
89
91
</varlistentry>
90
92
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
+
91
102
</variablelist>
92
103
</para>
93
104
</refsect2>
@@ -141,9 +152,9 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
141
152
<term>SET/DROP DEFAULT</term>
142
153
<listitem>
143
154
<para>
144
- These forms set or remove the default value for a column . Note
155
+ These forms set or remove the default value for a domain . Note
145
156
that defaults only apply to subsequent <command>INSERT</command>
146
- commands; they do not cause rows already in a table using the domain.
157
+ commands; they do not affect rows already in a table using the domain.
147
158
</para>
148
159
</listitem>
149
160
</varlistentry>
@@ -154,8 +165,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
154
165
<para>
155
166
These forms change whether a domain is marked to allow NULL
156
167
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.
159
169
</para>
160
170
</listitem>
161
171
</varlistentry>
@@ -164,8 +174,10 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
164
174
<term>ADD <replaceable class="PARAMETER">domain_constraint</replaceable></term>
165
175
<listitem>
166
176
<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.
169
181
</para>
170
182
</listitem>
171
183
</varlistentry>
@@ -179,11 +191,19 @@ ALTER DOMAIN <replaceable class="PARAMETER">domain</replaceable>
179
191
</listitem>
180
192
</varlistentry>
181
193
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>
182
202
</variablelist>
183
203
184
204
<para>
185
205
You must own the domain to use <command>ALTER DOMAIN</>; except for
186
- <command>ALTER TABLE OWNER</>, which may only be executed by a superuser.
206
+ <command>ALTER DOMAIN OWNER</>, which may only be executed by a superuser.
187
207
</para>
188
208
</refsect1>
189
209
0 commit comments