Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74769d8

Browse files
committed
Issue#48: PostgreSQL 10.6 release didn't get rbtree renames
Handle it differently for PostgreSQL 10.6 and 10.7.
1 parent7f025c9 commit74769d8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎src/rum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ extern IndexBulkDeleteResult *rumvacuumcleanup(IndexVacuumInfo *info,
773773
externboolrumvalidate(Oidopclassoid);
774774

775775
/* rumbulk.c */
776-
#ifPG_VERSION_NUM<100000
776+
#ifPG_VERSION_NUM <=100006
777777
#defineRBTNode RBNode
778778
#endif
779779

‎src/rumbulk.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#defineDEF_NPTR5/* ItemPointer initial allocation quantum */
2323

2424
/* PostgreSQL pre 10 has different names for this functions */
25-
#ifPG_VERSION_NUM<100000
25+
#ifPG_VERSION_NUM <=100006
2626
#definerbt_create(node_size,comparator,combiner,allocfunc,freefunc,arg) \
2727
(rb_create(node_size, comparator, combiner, allocfunc, freefunc, arg))
2828
#definerbt_insert(rbt,data,isNew) \
@@ -280,8 +280,10 @@ qsortCompareRumItem(const void *a, const void *b, void *arg)
280280
void
281281
rumBeginBAScan(BuildAccumulator*accum)
282282
{
283-
#ifPG_VERSION_NUM >=100000
283+
#ifPG_VERSION_NUM>100006
284284
rbt_begin_iterate(accum->tree,LeftRightWalk,&accum->tree_walk);
285+
#elifPG_VERSION_NUM >=100000
286+
rb_begin_iterate(accum->tree,LeftRightWalk,&accum->tree_walk);
285287
#else
286288
rb_begin_iterate(accum->tree,LeftRightWalk);
287289
#endif
@@ -300,8 +302,10 @@ rumGetBAEntry(BuildAccumulator *accum,
300302
RumEntryAccumulator*entry;
301303
RumItem*list;
302304

303-
#ifPG_VERSION_NUM >=100000
305+
#ifPG_VERSION_NUM>100006
304306
entry= (RumEntryAccumulator*)rbt_iterate(&accum->tree_walk);
307+
#elifPG_VERSION_NUM >=100000
308+
entry= (RumEntryAccumulator*)rb_iterate(&accum->tree_walk);
305309
#else
306310
entry= (RumEntryAccumulator*)rb_iterate(accum->tree);
307311
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp