diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/commands/tablecmds.h | 7 | ||||
-rw-r--r-- | src/include/nodes/parsenodes.h | 13 |
2 files changed, 17 insertions, 3 deletions
diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h index 79d2049cd05..3452713bd0e 100644 --- a/src/include/commands/tablecmds.h +++ b/src/include/commands/tablecmds.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/commands/tablecmds.h,v 1.27 2006/03/05 15:58:55 momjian Exp $ + * $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.28 2006/06/27 03:43:20 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -16,6 +16,7 @@ #include "nodes/parsenodes.h" #include "utils/rel.h" +#include "access/tupdesc.h" extern Oid DefineRelation(CreateStmt *stmt, char relkind); @@ -47,6 +48,10 @@ extern void renameatt(Oid myrelid, extern void renamerel(Oid myrelid, const char *newrelname); +extern AttrNumber * varattnos_map(TupleDesc old, TupleDesc new); +extern AttrNumber * varattnos_map_schema(TupleDesc old, List *schema); +extern void change_varattnos_of_a_node(Node *node, const AttrNumber *newattno); + extern void register_on_commit_action(Oid relid, OnCommitAction action); extern void remove_on_commit_action(Oid relid); 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 * |