From: Neil Conway Date: Thu, 23 Sep 2004 03:43:57 +0000 (+0000) Subject: Update CREATE TABLE AS docs to reflect the fact that CREATE TABLE AS was X-Git-Tag: REL8_0_0BETA3~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=505d9be3e66362ab52cadc5f9236a56cc4725ed0;p=postgresql Update CREATE TABLE AS docs to reflect the fact that CREATE TABLE AS was added to the SQL:2003 standard. --- diff --git a/doc/src/sgml/ref/create_table_as.sgml b/doc/src/sgml/ref/create_table_as.sgml index 6c7566781b..2e0115e87d 100644 --- a/doc/src/sgml/ref/create_table_as.sgml +++ b/doc/src/sgml/ref/create_table_as.sgml @@ -1,5 +1,5 @@ @@ -166,11 +166,34 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name Compatibility - This command is modeled after an Oracle - feature. There is no command with equivalent functionality in - the SQL standard. However, a combination of CREATE - TABLE and INSERT ... SELECT can - accomplish the same thing with little more effort. + CREATE TABLE AS is specified by the SQL2003 + standard. There are some small differences between the definition + of the command in SQL2003 and its implementation in + PostgreSQL: + + + + + The standard requires parentheses around the subquery clause; in + PostgreSQL, these parentheses are + optional. + + + + + + The standard defines an ON COMMIT clause; + this is not currently implemented by PostgreSQL. + + + + + + The standard defines a WITH DATA clause; + this is not currently implemented by PostgreSQL. + + +