diff --git a/hll.c b/hll.c index 8304e45..2740df6 100644 --- a/hll.c +++ b/hll.c @@ -2756,11 +2756,19 @@ setup_multiset(MemoryContext rcontext) MemoryContext oldcontext; multiset_t * msp; +#if (PG_VERSION_NUM >= 110000) + tmpcontext = AllocSetContextCreateExtended(rcontext, + "multiset", + ALLOCSET_DEFAULT_MINSIZE, + ALLOCSET_DEFAULT_INITSIZE, + ALLOCSET_DEFAULT_MAXSIZE); +#else tmpcontext = AllocSetContextCreate(rcontext, "multiset", ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_INITSIZE, ALLOCSET_DEFAULT_MAXSIZE); +#endif oldcontext = MemoryContextSwitchTo(tmpcontext);