@@ -74,30 +74,6 @@ SELECT a FROM test_rum WHERE a @@ to_tsquery('pg_catalog.english', 'bar') ORDER
7474-- Check full-index scan with order by
7575SELECT a <=> to_tsquery(' pg_catalog.english' , ' ever|wrote' ) FROM test_rum ORDER BY a <=> to_tsquery(' pg_catalog.english' , ' ever|wrote' );
7676
77- CREATE TABLE tst (i int4, t tsvector);
78- INSERT INTO tst SELECT i%10 , to_tsvector(' simple' , substr(md5(i::text ), 1 , 1 )) FROM generate_series(1 ,100000 ) i;
79- CREATE INDEX tstidx ON tst USING rum (t rum_tsvector_ops);
80-
81- DELETE FROM tst WHERE i = 1 ;
82- VACUUM tst;
83- INSERT INTO tst SELECT i%10 , to_tsvector(' simple' , substr(md5(i::text ), 1 , 1 )) FROM generate_series(10001 ,11000 ) i;
84-
85- DELETE FROM tst WHERE i = 2 ;
86- VACUUM tst;
87- INSERT INTO tst SELECT i%10 , to_tsvector(' simple' , substr(md5(i::text ), 1 , 1 )) FROM generate_series(11001 ,12000 ) i;
88-
89- DELETE FROM tst WHERE i = 3 ;
90- VACUUM tst;
91- INSERT INTO tst SELECT i%10 , to_tsvector(' simple' , substr(md5(i::text ), 1 , 1 )) FROM generate_series(12001 ,13000 ) i;
92-
93- DELETE FROM tst WHERE i = 4 ;
94- VACUUM tst;
95- INSERT INTO tst SELECT i%10 , to_tsvector(' simple' , substr(md5(i::text ), 1 , 1 )) FROM generate_series(13001 ,14000 ) i;
96-
97- DELETE FROM tst WHERE i = 5 ;
98- VACUUM tst;
99- INSERT INTO tst SELECT i%10 , to_tsvector(' simple' , substr(md5(i::text ), 1 , 1 )) FROM generate_series(14001 ,15000 ) i;
100-
10177set enable_bitmapscan= off;
10278explain (costs off)
10379SELECT a <=> to_tsquery(' pg_catalog.english' , ' w:*' ), *
@@ -110,4 +86,3 @@ SELECT a <=> to_tsquery('pg_catalog.english', 'w:*'), *
11086 ORDER BY a <=> to_tsquery(' pg_catalog.english' , ' w:*' );
11187
11288DROP TABLE test_rum CASCADE;
113- DROP TABLE tst CASCADE;
0 commit comments