Skip to content

Commit

Permalink
Revert "Fix PostgreSQL 11 build failure"
Browse files Browse the repository at this point in the history
This reverts commit e7bfbc8.

In PostgreSQL mailing-list, it is decided to allow usage of existing API to not
break extensions. Also using AllocSetContextCreateExtended was not correct fix
anyway, because that skips some error checks.

Discussion: Discussion: https://postgr.es/m/[email protected]
  • Loading branch information
Burak Yucesoy committed Nov 2, 2018
1 parent 2cb1d9e commit c44359b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/hll.c
Original file line number Diff line number Diff line change
Expand Up @@ -2756,19 +2756,11 @@ 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 c44359b

Please sign in to comment.