From dc2c25fc6246866ce809a8b6bf1d2a2856334b54 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 27 Jun 2006 03:43:20 +0000 Subject: Add INCLUDING CONSTRAINTS to CREATE TABLE LIKE. Greg Stark --- src/include/nodes/parsenodes.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/include/nodes') 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 * -- cgit v1.2.3