Navigation Menu

Skip to content

Commit

Permalink
test: improve test data
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 28, 2015
1 parent cea7a23 commit b0e6879
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 38 deletions.
16 changes: 8 additions & 8 deletions expected/full-text-search/text/single/like/end/bitmapscan.out
Expand Up @@ -2,20 +2,20 @@ CREATE TABLE memos (
id integer,
content text
);
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
INSERT INTO memos VALUES (4, 'groonga command is provided.');
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga');
INSERT INTO memos VALUES (4, 'groonga command is provided');
CREATE INDEX grnindex ON memos USING pgroonga (content);
SET enable_seqscan = off;
SET enable_indexscan = off;
SET enable_bitmapscan = on;
SELECT id, content
FROM memos
WHERE content LIKE '%Groonga.';
id | content
----+-------------------------------------------------------
3 | PGroonga is a PostgreSQL extension that uses Groonga.
WHERE content LIKE '%Groonga';
id | content
----+------------------------------------------------------
3 | PGroonga is a PostgreSQL extension that uses Groonga
(1 row)

DROP TABLE memos;
16 changes: 8 additions & 8 deletions expected/full-text-search/text/single/like/end/indexscan.out
Expand Up @@ -2,20 +2,20 @@ CREATE TABLE memos (
id integer,
content text
);
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
INSERT INTO memos VALUES (4, 'groonga command is provided.');
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga');
INSERT INTO memos VALUES (4, 'groonga command is provided');
CREATE INDEX grnindex ON memos USING pgroonga (content);
SET enable_seqscan = off;
SET enable_indexscan = on;
SET enable_bitmapscan = off;
SELECT id, content
FROM memos
WHERE content LIKE '%Groonga.';
id | content
----+-------------------------------------------------------
3 | PGroonga is a PostgreSQL extension that uses Groonga.
WHERE content LIKE '%Groonga';
id | content
----+------------------------------------------------------
3 | PGroonga is a PostgreSQL extension that uses Groonga
(1 row)

DROP TABLE memos;
16 changes: 8 additions & 8 deletions expected/full-text-search/text/single/like/end/seqscan.out
Expand Up @@ -2,20 +2,20 @@ CREATE TABLE memos (
id integer,
content text
);
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
INSERT INTO memos VALUES (4, 'groonga command is provided.');
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga');
INSERT INTO memos VALUES (4, 'groonga command is provided');
CREATE INDEX grnindex ON memos USING pgroonga (content);
SET enable_seqscan = on;
SET enable_indexscan = off;
SET enable_bitmapscan = off;
SELECT id, content
FROM memos
WHERE content LIKE '%Groonga.';
id | content
----+-------------------------------------------------------
3 | PGroonga is a PostgreSQL extension that uses Groonga.
WHERE content LIKE '%Groonga';
id | content
----+------------------------------------------------------
3 | PGroonga is a PostgreSQL extension that uses Groonga
(1 row)

DROP TABLE memos;
10 changes: 5 additions & 5 deletions sql/full-text-search/text/single/like/end/bitmapscan.sql
Expand Up @@ -3,10 +3,10 @@ CREATE TABLE memos (
content text
);

INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
INSERT INTO memos VALUES (4, 'groonga command is provided.');
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga');
INSERT INTO memos VALUES (4, 'groonga command is provided');

CREATE INDEX grnindex ON memos USING pgroonga (content);

Expand All @@ -16,6 +16,6 @@ SET enable_bitmapscan = on;

SELECT id, content
FROM memos
WHERE content LIKE '%Groonga.';
WHERE content LIKE '%Groonga';

DROP TABLE memos;
10 changes: 5 additions & 5 deletions sql/full-text-search/text/single/like/end/indexscan.sql
Expand Up @@ -3,10 +3,10 @@ CREATE TABLE memos (
content text
);

INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
INSERT INTO memos VALUES (4, 'groonga command is provided.');
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga');
INSERT INTO memos VALUES (4, 'groonga command is provided');

CREATE INDEX grnindex ON memos USING pgroonga (content);

Expand All @@ -16,6 +16,6 @@ SET enable_bitmapscan = off;

SELECT id, content
FROM memos
WHERE content LIKE '%Groonga.';
WHERE content LIKE '%Groonga';

DROP TABLE memos;
8 changes: 4 additions & 4 deletions sql/full-text-search/text/single/like/end/seqscan.sql
Expand Up @@ -3,10 +3,10 @@ CREATE TABLE memos (
content text
);

INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
INSERT INTO memos VALUES (4, 'groonga command is provided.');
INSERT INTO memos VALUES (4, 'groonga command is provided');

CREATE INDEX grnindex ON memos USING pgroonga (content);

Expand All @@ -16,6 +16,6 @@ SET enable_bitmapscan = off;

SELECT id, content
FROM memos
WHERE content LIKE '%Groonga.';
WHERE content LIKE '%Groonga';

DROP TABLE memos;

0 comments on commit b0e6879

Please sign in to comment.