From e7bfbc80bbaca547167d645be11db24c8922385f Mon Sep 17 00:00:00 2001 From: Burak Yucesoy Date: Tue, 29 May 2018 11:37:56 +0300 Subject: [PATCH] Fix PostgreSQL 11 build failure --- hll.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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);