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

Commitaf9b870

Browse files
author
Zakirov Artur
committed
In rum_hash.sql use only hash operator classes
1 parenta59ed37 commitaf9b870

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

‎expected/rum_hash.out

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -268,24 +268,6 @@ SELECT a <=> to_tsquery('pg_catalog.english', 'ever|wrote') FROM test_rum ORDER
268268
Infinity
269269
(56 rows)
270270

271-
CREATE TABLE tst (i int4, t tsvector);
272-
INSERT INTO tst SELECT i%10, to_tsvector('simple', substr(md5(i::text), 1, 1)) FROM generate_series(1,100000) i;
273-
CREATE INDEX tstidx ON tst USING rum (t rum_tsvector_ops);
274-
DELETE FROM tst WHERE i = 1;
275-
VACUUM tst;
276-
INSERT INTO tst SELECT i%10, to_tsvector('simple', substr(md5(i::text), 1, 1)) FROM generate_series(10001,11000) i;
277-
DELETE FROM tst WHERE i = 2;
278-
VACUUM tst;
279-
INSERT INTO tst SELECT i%10, to_tsvector('simple', substr(md5(i::text), 1, 1)) FROM generate_series(11001,12000) i;
280-
DELETE FROM tst WHERE i = 3;
281-
VACUUM tst;
282-
INSERT INTO tst SELECT i%10, to_tsvector('simple', substr(md5(i::text), 1, 1)) FROM generate_series(12001,13000) i;
283-
DELETE FROM tst WHERE i = 4;
284-
VACUUM tst;
285-
INSERT INTO tst SELECT i%10, to_tsvector('simple', substr(md5(i::text), 1, 1)) FROM generate_series(13001,14000) i;
286-
DELETE FROM tst WHERE i = 5;
287-
VACUUM tst;
288-
INSERT INTO tst SELECT i%10, to_tsvector('simple', substr(md5(i::text), 1, 1)) FROM generate_series(14001,15000) i;
289271
set enable_bitmapscan=off;
290272
explain (costs off)
291273
SELECT a <=> to_tsquery('pg_catalog.english', 'w:*'), *
@@ -305,4 +287,3 @@ SELECT a <=> to_tsquery('pg_catalog.english', 'w:*'), *
305287
ORDER BY a <=> to_tsquery('pg_catalog.english', 'w:*');
306288
ERROR: Compare with prefix expressions isn't supported
307289
DROP TABLE test_rum CASCADE;
308-
DROP TABLE tst CASCADE;

‎sql/rum_hash.sql

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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
7575
SELECT a<=> to_tsquery('pg_catalog.english','ever|wrote')FROM test_rumORDER BY a<=> to_tsquery('pg_catalog.english','ever|wrote');
7676

77-
CREATETABLEtst (i int4, t tsvector);
78-
INSERT INTO tstSELECT i%10, to_tsvector('simple', substr(md5(i::text),1,1))FROM generate_series(1,100000) i;
79-
CREATEINDEXtstidxON tst USING rum (t rum_tsvector_ops);
80-
81-
DELETEFROM tstWHERE i=1;
82-
VACUUM tst;
83-
INSERT INTO tstSELECT i%10, to_tsvector('simple', substr(md5(i::text),1,1))FROM generate_series(10001,11000) i;
84-
85-
DELETEFROM tstWHERE i=2;
86-
VACUUM tst;
87-
INSERT INTO tstSELECT i%10, to_tsvector('simple', substr(md5(i::text),1,1))FROM generate_series(11001,12000) i;
88-
89-
DELETEFROM tstWHERE i=3;
90-
VACUUM tst;
91-
INSERT INTO tstSELECT i%10, to_tsvector('simple', substr(md5(i::text),1,1))FROM generate_series(12001,13000) i;
92-
93-
DELETEFROM tstWHERE i=4;
94-
VACUUM tst;
95-
INSERT INTO tstSELECT i%10, to_tsvector('simple', substr(md5(i::text),1,1))FROM generate_series(13001,14000) i;
96-
97-
DELETEFROM tstWHERE i=5;
98-
VACUUM tst;
99-
INSERT INTO tstSELECT i%10, to_tsvector('simple', substr(md5(i::text),1,1))FROM generate_series(14001,15000) i;
100-
10177
set enable_bitmapscan=off;
10278
explain (costs off)
10379
SELECT 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

11288
DROPTABLE test_rum CASCADE;
113-
DROPTABLE tst CASCADE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp