diff --git a/src/backend/distributed/commands/index.c b/src/backend/distributed/commands/index.c index 428c930c5..b53c5d3f9 100644 --- a/src/backend/distributed/commands/index.c +++ b/src/backend/distributed/commands/index.c @@ -190,8 +190,8 @@ ErrorIfReindexOnDistributedTable(ReindexStmt *ReindexStatement) return; } - Assert(ReindexStatement->relkind == REINDEX_OBJECT_INDEX || - ReindexStatement->relkind == REINDEX_OBJECT_TABLE); + Assert(ReindexStatement->kind == REINDEX_OBJECT_INDEX || + ReindexStatement->kind == REINDEX_OBJECT_TABLE); /* * XXX: Consider using RangeVarGetRelidExtended with a permission