summaryrefslogtreecommitdiff
path: root/src/backend/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/parser')
-rw-r--r--src/backend/parser/gram.y4
-rw-r--r--src/backend/parser/parse_utilcmd.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index ae800d565fa..27ddeaa4dfe 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -6664,6 +6664,8 @@ IndexStmt: CREATE opt_unique INDEX opt_concurrently opt_index_name
n->idxcomment = NULL;
n->indexOid = InvalidOid;
n->oldNode = InvalidOid;
+ n->oldCreateSubid = InvalidSubTransactionId;
+ n->oldFirstRelfilenodeSubid = InvalidSubTransactionId;
n->primary = false;
n->isconstraint = false;
n->deferrable = false;
@@ -6690,6 +6692,8 @@ IndexStmt: CREATE opt_unique INDEX opt_concurrently opt_index_name
n->idxcomment = NULL;
n->indexOid = InvalidOid;
n->oldNode = InvalidOid;
+ n->oldCreateSubid = InvalidSubTransactionId;
+ n->oldFirstRelfilenodeSubid = InvalidSubTransactionId;
n->primary = false;
n->isconstraint = false;
n->deferrable = false;
diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c
index e4dc508682f..afe36be5707 100644
--- a/src/backend/parser/parse_utilcmd.c
+++ b/src/backend/parser/parse_utilcmd.c
@@ -1121,6 +1121,8 @@ generateClonedIndexStmt(CreateStmtContext *cxt, Relation source_idx,
index->idxcomment = NULL;
index->indexOid = InvalidOid;
index->oldNode = InvalidOid;
+ index->oldCreateSubid = InvalidSubTransactionId;
+ index->oldFirstRelfilenodeSubid = InvalidSubTransactionId;
index->unique = idxrec->indisunique;
index->primary = idxrec->indisprimary;
index->transformed = true; /* don't need transformIndexStmt */
@@ -1586,6 +1588,8 @@ transformIndexConstraint(Constraint *constraint, CreateStmtContext *cxt)
index->idxcomment = NULL;
index->indexOid = InvalidOid;
index->oldNode = InvalidOid;
+ index->oldCreateSubid = InvalidSubTransactionId;
+ index->oldFirstRelfilenodeSubid = InvalidSubTransactionId;
index->transformed = false;
index->concurrent = false;
index->if_not_exists = false;