Revert it back

velioglu/wo_seq_test_1
Burak Velioglu 2022-01-20 00:01:30 +03:00
parent fc36de02ba
commit f509cd6660
No known key found for this signature in database
GPG Key ID: F6827E620F6549C6
2 changed files with 7 additions and 6 deletions

View File

@ -509,11 +509,6 @@ CreateDistributedTable(Oid relationId, Var *distributionColumn, char distributio
CreateTruncateTrigger(relationId); CreateTruncateTrigger(relationId);
} }
if (ShouldSyncTableMetadata(relationId))
{
SyncCitusTableMetadata(relationId);
}
/* /*
* If we are using master_create_distributed_table, we don't need to continue, * If we are using master_create_distributed_table, we don't need to continue,
* because deprecated API does not supports the following features. * because deprecated API does not supports the following features.
@ -539,6 +534,11 @@ CreateDistributedTable(Oid relationId, Var *distributionColumn, char distributio
CreateReferenceTableShard(relationId); CreateReferenceTableShard(relationId);
} }
if (ShouldSyncTableMetadata(relationId))
{
SyncCitusTableMetadata(relationId);
}
/* /*
* We've a custom way of foreign key graph invalidation, * We've a custom way of foreign key graph invalidation,
* see InvalidateForeignKeyGraph(). * see InvalidateForeignKeyGraph().

View File

@ -1029,7 +1029,8 @@ GetRelationSequenceDependencyList(Oid relationId)
List *sequenceDependencyDefList = NIL; List *sequenceDependencyDefList = NIL;
GetDependentSequencesWithRelation(relationId, &attnumList, &dependentSequenceList, 0); GetDependentSequencesWithRelation(relationId, &attnumList, &dependentSequenceList, 0);
sequenceDependencyDefList = CreateObjectAddressDependencyDefList(RelationRelationId, dependentSequenceList); sequenceDependencyDefList = CreateObjectAddressDependencyDefList(RelationRelationId,
dependentSequenceList);
return sequenceDependencyDefList; return sequenceDependencyDefList;
} }