CREATE LIKE INCLUDING COMMENTS and STORAGE, and INCLUDING ALL shortcut. Itagaki Takahiro.
authorAndrew Dunstan
Mon, 12 Oct 2009 19:49:24 +0000 (19:49 +0000)
committerAndrew Dunstan
Mon, 12 Oct 2009 19:49:24 +0000 (19:49 +0000)
15 files changed:
doc/src/sgml/ref/create_table.sgml
src/backend/access/common/tupdesc.c
src/backend/catalog/pg_constraint.c
src/backend/commands/comment.c
src/backend/commands/tablecmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/parser/parse_utilcmd.c
src/include/catalog/pg_constraint.h
src/include/commands/comment.h
src/include/nodes/parsenodes.h
src/include/parser/kwlist.h
src/test/regress/expected/inherit.out
src/test/regress/sql/inherit.sql

index dc9b6855d91edaeb5dd43d05afab68a30491611d..a63333cb6f93eb8c40a5095f1120f25ade87d709 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -24,7 +24,7 @@ PostgreSQL documentation
 CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name ( [
   { column_name data_type [ DEFAULT default_expr ] [ column_constraint [ ... ] ]
     | table_constraint
-    | LIKE parent_table [ { INCLUDING | EXCLUDING } { DEFAULTS | CONSTRAINTS | INDEXES } ] ... }
+    | LIKE parent_table [ { INCLUDING | EXCLUDING } { DEFAULTS | CONSTRAINTS | INDEXES | STORAGE | COMMENTS | ALL } ] ... }
     [, ... ]
 ] )
 [ INHERITS ( parent_table [, ... ] ) ]
@@ -230,6 +230,10 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE 
       will always be chosen for it.
      
 
+     
+      Column storage parameters are also copied from parent tables.
+     
+