diff --git a/src/backend/distributed/commands/create_distributed_table.c b/src/backend/distributed/commands/create_distributed_table.c index 2373e49a5..0bea11034 100644 --- a/src/backend/distributed/commands/create_distributed_table.c +++ b/src/backend/distributed/commands/create_distributed_table.c @@ -2337,27 +2337,6 @@ TupleDescColumnNameList(TupleDesc tupleDescriptor) } -/* - * RelationUsesIdentityColumns returns whether a given relation uses - * GENERATED ... AS IDENTITY - */ -bool -RelationUsesIdentityColumns(TupleDesc relationDesc) -{ - for (int attributeIndex = 0; attributeIndex < relationDesc->natts; attributeIndex++) - { - Form_pg_attribute attributeForm = TupleDescAttr(relationDesc, attributeIndex); - - if (attributeForm->attidentity != '\0') - { - return true; - } - } - - return false; -} - - #if (PG_VERSION_NUM >= PG_VERSION_15) /* diff --git a/src/include/distributed/metadata_utility.h b/src/include/distributed/metadata_utility.h index 4e6e39803..82576d681 100644 --- a/src/include/distributed/metadata_utility.h +++ b/src/include/distributed/metadata_utility.h @@ -353,7 +353,6 @@ extern void EnsureRelationExists(Oid relationId); extern bool RegularTable(Oid relationId); extern bool TableEmpty(Oid tableId); extern bool IsForeignTable(Oid relationId); -extern bool RelationUsesIdentityColumns(TupleDesc relationDesc); extern char * ConstructQualifiedShardName(ShardInterval *shardInterval); extern uint64 GetFirstShardId(Oid relationId); extern Datum StringToDatum(char *inputString, Oid dataType);