Skip to content

Commit

Permalink
Merge pull request #52 from citusdata/fix-PG11-build-failure
Browse files Browse the repository at this point in the history
Fix PostgreSQL 11 build failure
  • Loading branch information
Burak Yücesoy authored May 29, 2018
2 parents 7a1fc36 + e7bfbc8 commit a53cea8
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 a53cea8

Please sign in to comment.