diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-06-27 03:43:20 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-06-27 03:43:20 +0000 |
commit | dc2c25fc6246866ce809a8b6bf1d2a2856334b54 (patch) | |
tree | 4674e3a5b63f72f1bc0805c05d14b908b0dd589c /src/include/nodes/parsenodes.h | |
parent | 62f2693688205bdfc5d61b905b70f3aad8234c5c (diff) | |
download | postgresql-dc2c25fc6246866ce809a8b6bf1d2a2856334b54.tar.gz postgresql-dc2c25fc6246866ce809a8b6bf1d2a2856334b54.zip |
Add INCLUDING CONSTRAINTS to CREATE TABLE LIKE.
Greg Stark
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 56d41a2fd8d..2fb77fd6859 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.311 2006/06/16 20:23:45 adunstan Exp $ + * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.312 2006/06/27 03:43:20 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -403,7 +403,7 @@ typedef struct InhRelation { NodeTag type; RangeVar *relation; - bool including_defaults; + List *options; } InhRelation; /* @@ -1026,6 +1026,15 @@ typedef struct CreateStmt char *tablespacename; /* table space to use, or NULL */ } CreateStmt; +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, +} CreateStmtLikeOption; + /* ---------- * Definitions for plain (non-FOREIGN KEY) constraints in CreateStmt * |