static MemoryContext onlineAnalyzeMemoryContext = NULL;
static HTAB *relstats = NULL;
-static void relstatsInit();
+static void relstatsInit(void);
static int
oid_cmp(const void *a, const void *b)
#endif
static void
-relstatsInit()
+relstatsInit(void)
{
HASHCTL hash_ctl;
int flags = 0;
onlineAnalyzeMemoryContext =
AllocSetContextCreate(CacheMemoryContext,
"online_analyze storage context",
- ALLOCSET_DEFAULT_SIZES);
+#if PG_VERSION_NUM < 90600
+ ALLOCSET_DEFAULT_MINSIZE,
+ ALLOCSET_DEFAULT_INITSIZE,
+ ALLOCSET_DEFAULT_MAXSIZE
+#else
+ ALLOCSET_DEFAULT_SIZES
+#endif
+ );
}
- hash_ctl.hcxt = AllocSetContextCreate(CacheMemoryContext,
- "online_analyze storage context",
- ALLOCSET_DEFAULT_SIZES);
+ hash_ctl.hcxt = onlineAnalyzeMemoryContext;
flags |= HASH_CONTEXT;
hash_ctl.keysize = sizeof(Oid);