8000 Handle rbtree renames for PostgreSQL 10.7 · postgrespro/rum@b0eb043 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0eb043

Browse files
committed
Handle rbtree renames for PostgreSQL 10.7
1 parent ddd144b commit b0eb043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rumbulk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ qsortCompareRumItem(const void *a, const void *b, void *arg)
280280
void
281281
rumBeginBAScan(BuildAccumulator *accum)
282282
{
283-
#if PG_VERSION_NUM > 100006 && PG_VERSION_NUM >= 110001
283+
#if (PG_VERSION_NUM > 100006 && PG_VERSION_NUM < 110000) || PG_VERSION_NUM >= 110001
284284
rbt_begin_iterate(accum->tree, LeftRightWalk, &accum->tree_walk);
285285
#elif PG_VERSION_NUM >= 100000
286286
rb_begin_iterate(accum->tree, LeftRightWalk, &accum->tree_walk);
@@ -302,7 +302,7 @@ rumGetBAEntry(BuildAccumulator *accum,
302302
RumEntryAccumulator *entry;
303303
RumItem *list;
304304

305-
#if PG_VERSION_NUM > 100006 && PG_VERSION_NUM >= 110001
305+
#if (PG_VERSION_NUM > 100006 && PG_VERSION_NUM < 110000) || PG_VERSION_NUM >= 110001
306306
entry = (RumEntryAccumulator *) rbt_iterate(&accum->tree_walk);
307307
#elif PG_VERSION_NUM >= 100000
308308
entry = (RumEntryAccumulator *) rb_iterate(&accum->tree_walk);

0 commit comments

Comments
 (0)
0