aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/ts_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/cache/ts_cache.c')
-rw-r--r--src/backend/utils/cache/ts_cache.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/utils/cache/ts_cache.c b/src/backend/utils/cache/ts_cache.c
index da5c8ea345b..29cf93a4de6 100644
--- a/src/backend/utils/cache/ts_cache.c
+++ b/src/backend/utils/cache/ts_cache.c
@@ -294,9 +294,10 @@ lookup_ts_dictionary_cache(Oid dictId)
Assert(!found); /* it wasn't there a moment ago */
/* Create private memory context the first time through */
- saveCtx = AllocSetContextCreate(CacheMemoryContext,
- NameStr(dict->dictname),
- ALLOCSET_SMALL_SIZES);
+ saveCtx = AllocSetContextCreateExtended(CacheMemoryContext,
+ NameStr(dict->dictname),
+ MEMCONTEXT_COPY_NAME,
+ ALLOCSET_SMALL_SIZES);
}
else
{