From: Teodor Sigaev Date: Tue, 24 Jul 2018 13:31:42 +0000 (+0300) Subject: Changed call AllocSetContextCreate in the online_analyze.c X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=590e24ccd5d13ff49754ddf81ab048a7ec01121b;p=online_analyze.git Changed call AllocSetContextCreate in the online_analyze.c Victor Spirin --- 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;