Skip to content

Commit a53cea8

Browse files
author
Burak Yücesoy
authored
Merge pull request citusdata#52 from citusdata/fix-PG11-build-failure
Fix PostgreSQL 11 build failure
2 parents 7a1fc36 + e7bfbc8 commit a53cea8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hll.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,11 +2756,19 @@ setup_multiset(MemoryContext rcontext)
27562756
MemoryContext oldcontext;
27572757
multiset_t * msp;
27582758

2759+
#if (PG_VERSION_NUM >= 110000)
2760+
tmpcontext = AllocSetContextCreateExtended(rcontext,
2761+
"multiset",
2762+
ALLOCSET_DEFAULT_MINSIZE,
2763+
ALLOCSET_DEFAULT_INITSIZE,
2764+
ALLOCSET_DEFAULT_MAXSIZE);
2765+
#else
27592766
tmpcontext = AllocSetContextCreate(rcontext,
27602767
"multiset",
27612768
ALLOCSET_DEFAULT_MINSIZE,
27622769
ALLOCSET_DEFAULT_INITSIZE,
27632770
ALLOCSET_DEFAULT_MAXSIZE);
2771+
#endif
27642772

27652773
oldcontext = MemoryContextSwitchTo(tmpcontext);
27662774

0 commit comments

Comments
 (0)