diff options
Diffstat (limited to 'src/backend/catalog/partition.c')
| -rw-r--r-- | src/backend/catalog/partition.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/catalog/partition.c b/src/backend/catalog/partition.c index ef156e449e..5c4018e9f7 100644 --- a/src/backend/catalog/partition.c +++ b/src/backend/catalog/partition.c @@ -520,9 +520,10 @@ RelationBuildPartitionDesc(Relation rel) } /* Now build the actual relcache partition descriptor */ - rel->rd_pdcxt = AllocSetContextCreate(CacheMemoryContext, - RelationGetRelationName(rel), - ALLOCSET_DEFAULT_SIZES); + rel->rd_pdcxt = AllocSetContextCreateExtended(CacheMemoryContext, + RelationGetRelationName(rel), + MEMCONTEXT_COPY_NAME, + ALLOCSET_DEFAULT_SIZES); oldcxt = MemoryContextSwitchTo(rel->rd_pdcxt); result = (PartitionDescData *) palloc0(sizeof(PartitionDescData)); |
