diff --git a/src/backend/commands/createas.c b/src/backend/commands/createas.c index fe0b380b13e..9abbb6b5552 100644 --- a/src/backend/commands/createas.c +++ b/src/backend/commands/createas.c @@ -42,19 +42,15 @@ #include "nodes/makefuncs.h" #include "nodes/nodeFuncs.h" #include "parser/parse_clause.h" -#include "parser/parser.h" #include "rewrite/rewriteHandler.h" #include "storage/smgr.h" #include "tcop/tcopprot.h" -#include "tcop/utility.h" #include "utils/builtins.h" #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/rls.h" #include "utils/snapmgr.h" -bbfSelectIntoAddIdentity_hook_type bbfSelectIntoAddIdentity_hook = NULL; - typedef struct { DestReceiver pub; /* publicly-known function pointers */ @@ -114,11 +110,6 @@ create_ctas_internal(List *attrList, IntoClause *into) create->if_not_exists = false; create->accessMethod = into->accessMethod; - if (sql_dialect == SQL_DIALECT_TSQL) - { - if(into->identityName && bbfSelectIntoAddIdentity_hook) - (*bbfSelectIntoAddIdentity_hook)(into, create->tableElts); - } /* * Create the relation. (This will error out if there's an existing view, * so we don't need more code to complain if "replace" is false.) diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 01cdb62ccf5..7e306802fc7 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -1435,8 +1435,6 @@ _copyIntoClause(const IntoClause *from) COPY_STRING_FIELD(tableSpaceName); COPY_NODE_FIELD(viewQuery); COPY_SCALAR_FIELD(skipData); - COPY_STRING_FIELD(identityName); - COPY_STRING_FIELD(identityType); return newnode; } diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index a6c4b92a625..d728fb70f70 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -212,8 +212,6 @@ _equalIntoClause(const IntoClause *a, const IntoClause *b) COMPARE_STRING_FIELD(tableSpaceName); COMPARE_NODE_FIELD(viewQuery); COMPARE_SCALAR_FIELD(skipData); - COMPARE_STRING_FIELD(identityName); - COMPARE_STRING_FIELD(identityType); return true; } diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 8f1ac9a3cde..c7b1cadb58f 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -1134,8 +1134,6 @@ _outIntoClause(StringInfo str, const IntoClause *node) WRITE_STRING_FIELD(tableSpaceName); WRITE_NODE_FIELD(viewQuery); WRITE_BOOL_FIELD(skipData); - WRITE_STRING_FIELD(identityName); - WRITE_STRING_FIELD(identityType); } static void diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c index 4833ec3471d..6a05b694152 100644 --- a/src/backend/nodes/readfuncs.c +++ b/src/backend/nodes/readfuncs.c @@ -605,8 +605,6 @@ _readIntoClause(void) READ_STRING_FIELD(tableSpaceName); READ_NODE_FIELD(viewQuery); READ_BOOL_FIELD(skipData); - READ_STRING_FIELD(identityName); - READ_STRING_FIELD(identityType); READ_DONE(); } diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index d5bdfe861e2..cfa3327805c 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -126,8 +126,6 @@ typedef struct IntoClause char *tableSpaceName; /* table space to use, or NULL */ Node *viewQuery; /* materialized view's SELECT query */ bool skipData; /* true for WITH NO DATA */ - char *identityName; /* resname for Identity Column*/ - char *identityType; /* pg type for Identity Column*/ } IntoClause; diff --git a/src/include/tcop/utility.h b/src/include/tcop/utility.h index 3b093e25ed6..71560af62ad 100644 --- a/src/include/tcop/utility.h +++ b/src/include/tcop/utility.h @@ -115,7 +115,4 @@ typedef void (*bbfSelectIntoUtility_hook_type)(struct ParseState *pstate, Planne ParamListInfo params, QueryCompletion *qc); extern PGDLLIMPORT bbfSelectIntoUtility_hook_type bbfSelectIntoUtility_hook; -typedef void (*bbfSelectIntoAddIdentity_hook_type)(IntoClause *into, List *tableElts); -extern PGDLLIMPORT bbfSelectIntoAddIdentity_hook_type bbfSelectIntoAddIdentity_hook; - #endif /* UTILITY_H */