From f90dd28062db2128a340fbe02f55829f15ab5561 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 22 Dec 2011 22:43:56 +0200 Subject: Add ALTER DOMAIN ... RENAME You could already rename domains using ALTER TYPE, but with this new command it is more consistent with how other commands treat domains as a subcategory of types. --- doc/src/sgml/ref/alter_domain.sgml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/alter_domain.sgml b/doc/src/sgml/ref/alter_domain.sgml index 4f60fe334c0..29504ccd7cb 100644 --- a/doc/src/sgml/ref/alter_domain.sgml +++ b/doc/src/sgml/ref/alter_domain.sgml @@ -35,6 +35,8 @@ ALTER DOMAIN name VALIDATE CONSTRAINT constraint_name ALTER DOMAIN name OWNER TO new_owner +ALTER DOMAIN name + RENAME TO new_name ALTER DOMAIN name SET SCHEMA new_schema @@ -118,6 +120,15 @@ ALTER DOMAIN name + + RENAME + + + This form changes the name of the domain. + + + + SET SCHEMA @@ -203,6 +214,15 @@ ALTER DOMAIN name + + new_name + + + The new name for the domain. + + + + new_owner @@ -278,7 +298,7 @@ ALTER DOMAIN zipcode SET SCHEMA customers; ALTER DOMAIN conforms to the SQL - standard, except for the OWNER, SET SCHEMA and + standard, except for the OWNER, RENAME, SET SCHEMA, and VALIDATE CONSTRAINT variants, which are PostgreSQL extensions. The NOT VALID clause of the ADD CONSTRAINT variant is also a -- cgit v1.2.3