From daec989f6a763c9353ba2912b92f5b03c0246c1f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 6 Jan 2003 00:31:45 +0000 Subject: ALTER DOMAIN OWNER, from Rod Taylor. --- doc/src/sgml/ref/alter_domain.sgml | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/alter_domain.sgml b/doc/src/sgml/ref/alter_domain.sgml index 4735d424059..fdbf08e6d48 100644 --- a/doc/src/sgml/ref/alter_domain.sgml +++ b/doc/src/sgml/ref/alter_domain.sgml @@ -1,5 +1,5 @@ @@ -29,6 +29,8 @@ ALTER DOMAIN domain ADD domain_constraint ALTER DOMAIN domain DROP CONSTRAINT constraint_name [ RESTRICT | CASCADE ] +ALTER DOMAIN domain + OWNER TO new_owner @@ -73,7 +75,7 @@ ALTER DOMAIN domain CASCADE - Automatically drop objects that depend constraint. + Automatically drop objects that depend on the constraint. @@ -88,6 +90,15 @@ ALTER DOMAIN domain + + new_owner + + + The user name of the new owner of the domain. + + + + @@ -141,9 +152,9 @@ ALTER DOMAIN domain SET/DROP DEFAULT - These forms set or remove the default value for a column. Note + These forms set or remove the default value for a domain. Note that defaults only apply to subsequent INSERT - commands; they do not cause rows already in a table using the domain. + commands; they do not affect rows already in a table using the domain. @@ -154,8 +165,7 @@ ALTER DOMAIN domain These forms change whether a domain is marked to allow NULL values or to reject NULL values. You may only SET NOT NULL - when the tables using the domain contain no null values in the domain - based column. + when the columns using the domain contain no null values. @@ -164,8 +174,10 @@ ALTER DOMAIN domain ADD domain_constraint - This form adds a new constraint to a table using the same syntax as - . + This form adds a new constraint to a domain using the same syntax as + . + This will only succeed if all columns using the domain satisfy the + new constraint. @@ -179,11 +191,19 @@ ALTER DOMAIN domain + + OWNER + + + This form changes the owner of the domain to the specified user. + + + You must own the domain to use ALTER DOMAIN; except for - ALTER TABLE OWNER, which may only be executed by a superuser. + ALTER DOMAIN OWNER, which may only be executed by a superuser. -- cgit v1.2.3