Skip to content

Commit 1685267

Browse files
author
Arthur Zakirov
committed
Some comments
1 parent da84306 commit 1685267

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ endif
3535
wal-check: temp-install
3636
$(prove_check)
3737

38+
all: rum--1.1.sql
39+
40+
#9.6 requires 1.1 file but 10.0 could live with 1.0 + 1.0-1.1 files
41+
rum--1.1.sql: rum--1.0.sql rum--1.0--1.1.sql
42+
cat rum--1.0.sql rum--1.0--1.1.sql > rum--1.1.sql
43+
44+
rum--1.0--1.1.sql: Makefile gen_rum_sql--1.0--1.1.pl
45+
perl gen_rum_sql--1.0--1.1.pl > rum--1.0--1.1.sql
46+
3847
install: installincludes
3948

4049
installincludes:

src/rum.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,12 +702,12 @@ typedef struct RumScanOpaqueData
702702
int norderbys; /* Number of columns in ordering.
703703
Will be assigned to sortstate->nKeys */
704704

705-
RumItem item;
705+
RumItem item; /* current item used in index scan */
706706
bool firstCall;
707+
707708
bool isVoidRes; /* true if query is unsatisfiable */
708-
bool willSort;
709+
bool willSort; /* is there any columns in ordering */
709710
RumScanType scanType;
710-
TIDBitmap *tbm;
711711

712712
ScanDirection naturalOrder;
713713
bool secondPass;

src/rumget.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,17 +2044,6 @@ rumgetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
20442044

20452045
ntids = 0;
20462046

2047-
/*
2048-
* First, scan the pending list and collect any matching entries into the
2049-
* bitmap. After we scan a pending item, some other backend could post it
2050-
* into the main index, and so we might visit it a second time during the
2051-
* main scan. This is okay because we'll just re-set the same bit in the
2052-
* bitmap. (The possibility of duplicate visits is a major reason why RUM
2053-
* can't support the amgettuple API, however.) Note that it would not do
2054-
* to scan the main index before the pending list, since concurrent
2055-
* cleanup could then make us miss entries entirely.
2056-
*/
2057-
so->tbm = tbm;
20582047
so->entriesIncrIndex = -1;
20592048

20602049
/*

src/rumscan.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ rumNewScanKey(IndexScanDesc scan)
534534

535535
so->naturalOrder = NoMovementScanDirection;
536536
so->secondPass = false;
537-
so->tbm = NULL;
538537
so->entriesIncrIndex = -1;
539538
so->norderbys = scan->numberOfOrderBys;
540539
so->willSort = false;

0 commit comments

Comments
 (0)