mirror of https://github.com/citusdata/citus.git
parent
d21ff0f883
commit
3c96b2a0cd
|
@ -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)
|
||||
|
||||
/*
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue