mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
CREATE LIKE INCLUDING COMMENTS and STORAGE, and INCLUDING ALL shortcut. Itagaki Takahiro.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.406 2009/10/12 18:10:51 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.407 2009/10/12 19:49:24 adunstan Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -460,6 +460,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? */
|
||||
char storage; /* storage parameter of column */
|
||||
Node *raw_default; /* default value (untransformed parse tree) */
|
||||
Node *cooked_default; /* default value (transformed expr tree) */
|
||||
List *constraints; /* other constraints on column */
|
||||
@@ -472,17 +473,17 @@ typedef struct InhRelation
|
||||
{
|
||||
NodeTag type;
|
||||
RangeVar *relation;
|
||||
List *options; /* integer List of CreateStmtLikeOption */
|
||||
bits32 options; /* bitmap of CreateStmtLikeOption */
|
||||
} InhRelation;
|
||||
|
||||
typedef enum CreateStmtLikeOption
|
||||
{
|
||||
CREATE_TABLE_LIKE_INCLUDING_DEFAULTS,
|
||||
CREATE_TABLE_LIKE_EXCLUDING_DEFAULTS,
|
||||
CREATE_TABLE_LIKE_INCLUDING_CONSTRAINTS,
|
||||
CREATE_TABLE_LIKE_EXCLUDING_CONSTRAINTS,
|
||||
CREATE_TABLE_LIKE_INCLUDING_INDEXES,
|
||||
CREATE_TABLE_LIKE_EXCLUDING_INDEXES
|
||||
CREATE_TABLE_LIKE_DEFAULTS = 1 << 0,
|
||||
CREATE_TABLE_LIKE_CONSTRAINTS = 1 << 1,
|
||||
CREATE_TABLE_LIKE_INDEXES = 1 << 2,
|
||||
CREATE_TABLE_LIKE_STORAGE = 1 << 3,
|
||||
CREATE_TABLE_LIKE_COMMENTS = 1 << 4,
|
||||
CREATE_TABLE_LIKE_ALL = 0xFFFFFFFF
|
||||
} CreateStmtLikeOption;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user