Skip to content

Commit

Permalink
Fix PostgreSQL 11 build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Yucesoy committed May 29, 2018
1 parent 7a1fc36 commit e7bfbc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e7bfbc8

Please sign in to comment.