diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-04-06 12:10:00 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-04-06 12:37:54 -0400 |
commit | bbca77623fb5e60f5aa5f226998f0f5c7a66bbf0 (patch) | |
tree | 83565aeafc20bb297355a397b8c273115e17101f /src/backend/utils/cache/relcache.c | |
parent | cfbecf8100ecb83c07c2017f843b0642580416bf (diff) | |
download | postgresql-bbca77623fb5e60f5aa5f226998f0f5c7a66bbf0.tar.gz postgresql-bbca77623fb5e60f5aa5f226998f0f5c7a66bbf0.zip |
Rename MemoryContextCopySetIdentifier() for clarity
MemoryContextCopySetIdentifier -> MemoryContextCopyAndSetIdentifier
Discussion: https://www.postgresql.org/message-id/6421.1522194949@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r-- | src/backend/utils/cache/relcache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 69a2114a104..b6ed06d5b3c 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -741,7 +741,7 @@ RelationBuildRuleLock(Relation relation) "relation rules", ALLOCSET_SMALL_SIZES); relation->rd_rulescxt = rulescxt; - MemoryContextCopySetIdentifier(rulescxt, + MemoryContextCopyAndSetIdentifier(rulescxt, RelationGetRelationName(relation)); /* @@ -918,7 +918,7 @@ RelationBuildPartitionKey(Relation relation) partkeycxt = AllocSetContextCreate(CurTransactionContext, "partition key", ALLOCSET_SMALL_SIZES); - MemoryContextCopySetIdentifier(partkeycxt, + MemoryContextCopyAndSetIdentifier(partkeycxt, RelationGetRelationName(relation)); key = (PartitionKey) MemoryContextAllocZero(partkeycxt, @@ -1601,7 +1601,7 @@ RelationInitIndexAccessInfo(Relation relation) "index info", ALLOCSET_SMALL_SIZES); relation->rd_indexcxt = indexcxt; - MemoryContextCopySetIdentifier(indexcxt, + MemoryContextCopyAndSetIdentifier(indexcxt, RelationGetRelationName(relation)); /* @@ -5668,7 +5668,7 @@ load_relcache_init_file(bool shared) "index info", ALLOCSET_SMALL_SIZES); rel->rd_indexcxt = indexcxt; - MemoryContextCopySetIdentifier(indexcxt, + MemoryContextCopyAndSetIdentifier(indexcxt, RelationGetRelationName(rel)); /* |