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

Commitf6d1d84

Browse files
committed
PGPRO-12044; PGPRO-11987: Temporary disable some rum tests.
To be solved in PGPRO-11987. Tags: rum
1 parentb6e5430 commitf6d1d84

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

‎Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ else
5252
REGRESS += array
5353
endif
5454

55+
REGRESS := security tmp$(filter-out security rum rum_hash orderby orderby_hash text array,$(REGRESS))
56+
5557
# For 9.6-11 we have to make specific target with tap tests
5658
ifeq ($(MAJORVERSION),$(filter 9.6% 10% 11%,$(MAJORVERSION)))
5759
wal-check: temp-install

‎expected/tmp.out

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
CREATE EXTENSION rum;
2+
CREATE TABLE test_rum( t text, a tsvector );
3+
CREATE TRIGGER tsvectorupdate
4+
BEFORE UPDATE OR INSERT ON test_rum
5+
FOR EACH ROW EXECUTE PROCEDURE tsvector_update_trigger('a', 'pg_catalog.english', 't');
6+
CREATE INDEX rumidx ON test_rum USING rum (a rum_tsvector_ops);
7+
-- Check empty table using index scan
8+
SELECT
9+
a <=> to_tsquery('pg_catalog.english', 'way & (go | half)'),
10+
rum_ts_distance(a, to_tsquery('pg_catalog.english', 'way & (go | half)')),
11+
rum_ts_score(a, to_tsquery('pg_catalog.english', 'way & (go | half)')),
12+
*
13+
FROM test_rum
14+
ORDER BY a <=> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 2;
15+
?column? | rum_ts_distance | rum_ts_score | t | a
16+
----------+-----------------+--------------+---+---
17+
(0 rows)
18+
19+
-- Fill the table with data
20+
\copy test_rum(t) from 'data/rum.data';
21+
CREATE INDEX failed_rumidx ON test_rum USING rum (a rum_tsvector_addon_ops);
22+
ERROR: additional information attribute "a" is not found in index
23+
CREATE TABLE tsts (id int, t tsvector, d timestamp);
24+
\copy tsts from 'data/tsts.data'
25+
CREATE INDEX tsts_idx ON tsts USING rum (t rum_tsvector_addon_ops, d)
26+
WITH (attach = 'd', to = 't');
27+
INSERT INTO tsts VALUES (-1, 't1 t2', '2016-05-02 02:24:22.326724');
28+
INSERT INTO tsts VALUES (-2, 't1 t2 t3', '2016-05-02 02:26:22.326724');
29+
INSERT INTO test_rum (t) VALUES ('foo bar foo the over foo qq bar');
30+
INSERT INTO test_rum (t) VALUES ('345 qwerty copyright');
31+
INSERT INTO test_rum (t) VALUES ('345 qwerty');
32+
INSERT INTO test_rum (t) VALUES ('A fat cat has just eaten a rat.');
33+
SET enable_seqscan=off;
34+
SET enable_indexscan=off;

‎sql/tmp.sql

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
CREATE EXTENSION rum;
2+
3+
CREATETABLEtest_rum( ttext, a tsvector );
4+
5+
CREATETRIGGERtsvectorupdate
6+
BEFOREUPDATEOR INSERTON test_rum
7+
FOR EACH ROW EXECUTE PROCEDURE tsvector_update_trigger('a','pg_catalog.english','t');
8+
CREATEINDEXrumidxON test_rum USING rum (a rum_tsvector_ops);
9+
10+
-- Check empty table using index scan
11+
SELECT
12+
a<=> to_tsquery('pg_catalog.english','way & (go | half)'),
13+
rum_ts_distance(a, to_tsquery('pg_catalog.english','way & (go | half)')),
14+
rum_ts_score(a, to_tsquery('pg_catalog.english','way & (go | half)')),
15+
*
16+
FROM test_rum
17+
ORDER BY a<=> to_tsquery('pg_catalog.english','way & (go | half)')limit2;
18+
19+
-- Fill the table with data
20+
\copy test_rum(t)from'data/rum.data';
21+
22+
CREATEINDEXfailed_rumidxON test_rum USING rum (a rum_tsvector_addon_ops);
23+
24+
CREATETABLEtsts (idint, t tsvector, dtimestamp);
25+
26+
\copy tstsfrom'data/tsts.data'
27+
28+
CREATEINDEXtsts_idxON tsts USING rum (t rum_tsvector_addon_ops, d)
29+
WITH (attach='d', to='t');
30+
31+
32+
INSERT INTO tstsVALUES (-1,'t1 t2','2016-05-02 02:24:22.326724');
33+
INSERT INTO tstsVALUES (-2,'t1 t2 t3','2016-05-02 02:26:22.326724');
34+
35+
INSERT INTO test_rum (t)VALUES ('foo bar foo the over foo qq bar');
36+
INSERT INTO test_rum (t)VALUES ('345 qwerty copyright');
37+
INSERT INTO test_rum (t)VALUES ('345 qwerty');
38+
INSERT INTO test_rum (t)VALUES ('A fat cat has just eaten a rat.');
39+
40+
41+
SET enable_seqscan=off;
42+
SET enable_indexscan=off;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp