From 590e24ccd5d13ff49754ddf81ab048a7ec01121b Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Tue, 24 Jul 2018 16:31:42 +0300 Subject: [PATCH] Changed call AllocSetContextCreate in the online_analyze.c Victor Spirin --- online_analyze.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/online_analyze.c b/online_analyze.c index 4396550..77c1f8b 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -947,6 +947,7 @@ onlineAnalyzeHookerUtility( } #endif + static void relstatsInit(void) { @@ -966,17 +967,20 @@ relstatsInit(void) else { Assert(relstats == NULL); + +#if PG_VERSION_NUM < 90600 onlineAnalyzeMemoryContext = AllocSetContextCreate(CacheMemoryContext, - "online_analyze storage context", -#if PG_VERSION_NUM < 90600 - ALLOCSET_DEFAULT_MINSIZE, - ALLOCSET_DEFAULT_INITSIZE, - ALLOCSET_DEFAULT_MAXSIZE + "online_analyze storage context", + ALLOCSET_DEFAULT_MINSIZE, + ALLOCSET_DEFAULT_INITSIZE, + ALLOCSET_DEFAULT_MAXSIZE + ); #else - ALLOCSET_DEFAULT_SIZES + onlineAnalyzeMemoryContext = + AllocSetContextCreate(CacheMemoryContext, + "online_analyze storage context", ALLOCSET_DEFAULT_SIZES); #endif - ); } hash_ctl.hcxt = onlineAnalyzeMemoryContext; -- 2.37.3