File tree Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 3535wal-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+
3847install : installincludes
3948
4049installincludes :
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 /*
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments