mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Type table feature
This adds the CREATE TABLE name OF type command, per SQL standard.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.426 2010/01/22 16:40:19 rhaas Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.427 2010/01/28 23:21:13 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -463,6 +463,7 @@ typedef struct ColumnDef
|
||||
int inhcount; /* number of times column is inherited */
|
||||
bool is_local; /* column has local (non-inherited) def'n */
|
||||
bool is_not_null; /* NOT NULL constraint specified? */
|
||||
bool is_from_type; /* column definition came from table type */
|
||||
char storage; /* attstorage setting, or 0 for default */
|
||||
Node *raw_default; /* default value (untransformed parse tree) */
|
||||
Node *cooked_default; /* default value (transformed expr tree) */
|
||||
@@ -1356,6 +1357,7 @@ typedef struct CreateStmt
|
||||
List *tableElts; /* column definitions (list of ColumnDef) */
|
||||
List *inhRelations; /* relations to inherit from (list of
|
||||
* inhRelation) */
|
||||
TypeName *ofTypename; /* OF typename */
|
||||
List *constraints; /* constraints (list of Constraint nodes) */
|
||||
List *options; /* options from WITH clause */
|
||||
OnCommitAction oncommit; /* what do we do at COMMIT? */
|
||||
|
||||
Reference in New Issue
Block a user