@@ -741,7 +741,7 @@ RelationBuildRuleLock(Relation relation)
741
741
"relation rules" ,
742
742
ALLOCSET_SMALL_SIZES );
743
743
relation -> rd_rulescxt = rulescxt ;
744
- MemoryContextCopySetIdentifier (rulescxt ,
744
+ MemoryContextCopyAndSetIdentifier (rulescxt ,
745
745
RelationGetRelationName (relation ));
746
746
747
747
/*
@@ -918,7 +918,7 @@ RelationBuildPartitionKey(Relation relation)
918
918
partkeycxt = AllocSetContextCreate (CurTransactionContext ,
919
919
"partition key" ,
920
920
ALLOCSET_SMALL_SIZES );
921
- MemoryContextCopySetIdentifier (partkeycxt ,
921
+ MemoryContextCopyAndSetIdentifier (partkeycxt ,
922
922
RelationGetRelationName (relation ));
923
923
924
924
key = (PartitionKey ) MemoryContextAllocZero (partkeycxt ,
@@ -1601,7 +1601,7 @@ RelationInitIndexAccessInfo(Relation relation)
1601
1601
"index info" ,
1602
1602
ALLOCSET_SMALL_SIZES );
1603
1603
relation -> rd_indexcxt = indexcxt ;
1604
- MemoryContextCopySetIdentifier (indexcxt ,
1604
+ MemoryContextCopyAndSetIdentifier (indexcxt ,
1605
1605
RelationGetRelationName (relation ));
1606
1606
1607
1607
/*
@@ -5668,7 +5668,7 @@ load_relcache_init_file(bool shared)
5668
5668
"index info" ,
5669
5669
ALLOCSET_SMALL_SIZES );
5670
5670
rel -> rd_indexcxt = indexcxt ;
5671
- MemoryContextCopySetIdentifier (indexcxt ,
5671
+ MemoryContextCopyAndSetIdentifier (indexcxt ,
5672
5672
RelationGetRelationName (rel ));
5673
5673
5674
5674
/*
0 commit comments