Changed call AllocSetContextCreate in the online_analyze.c
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 24 Jul 2018 13:31:42 +0000 (16:31 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 24 Jul 2018 13:31:42 +0000 (16:31 +0300)
Victor Spirin

online_analyze.c

index 4396550..77c1f8b 100644 (file)
@@ -947,6 +947,7 @@ onlineAnalyzeHookerUtility(
 }
 #endif
 
 }
 #endif
 
+
 static void
 relstatsInit(void)
 {
 static void
 relstatsInit(void)
 {
@@ -966,17 +967,20 @@ relstatsInit(void)
        else
        {
                Assert(relstats == NULL);
        else
        {
                Assert(relstats == NULL);
+
+#if PG_VERSION_NUM < 90600
                onlineAnalyzeMemoryContext =
                        AllocSetContextCreate(CacheMemoryContext,
                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
 #else
-                                                                 ALLOCSET_DEFAULT_SIZES
+               onlineAnalyzeMemoryContext =
+                       AllocSetContextCreate(CacheMemoryContext,
+                       "online_analyze storage context", ALLOCSET_DEFAULT_SIZES);
 #endif
 #endif
-                                                                );
        }
 
        hash_ctl.hcxt = onlineAnalyzeMemoryContext;
        }
 
        hash_ctl.hcxt = onlineAnalyzeMemoryContext;