Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
515 additions
and
5 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
expected/full-text-search/text/single/ilike/begin/bitmapscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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.'); | ||
| 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 ILIKE 'POSTGRESQL%'; | ||
| id | content | ||
| ----+------------------------ | ||
| 1 | PostgreSQL is a RDBMS. | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
21 changes: 21 additions & 0 deletions
21
expected/full-text-search/text/single/ilike/begin/indexscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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.'); | ||
| 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 ILIKE 'POSTGRESQL%'; | ||
| id | content | ||
| ----+------------------------ | ||
| 1 | PostgreSQL is a RDBMS. | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
21 changes: 21 additions & 0 deletions
21
expected/full-text-search/text/single/ilike/begin/seqscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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.'); | ||
| 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 ILIKE 'POSTGRESQL%'; | ||
| id | content | ||
| ----+------------------------ | ||
| 1 | PostgreSQL is a RDBMS. | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
21 changes: 21 additions & 0 deletions
21
expected/full-text-search/text/single/ilike/end/bitmapscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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'); | ||
| 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 ILIKE '%GROONGA'; | ||
| id | content | ||
| ----+------------------------------------------------------ | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
21 changes: 21 additions & 0 deletions
21
expected/full-text-search/text/single/ilike/end/indexscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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'); | ||
| 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 ILIKE '%GROONGA'; | ||
| id | content | ||
| ----+------------------------------------------------------ | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
21 changes: 21 additions & 0 deletions
21
expected/full-text-search/text/single/ilike/end/seqscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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'); | ||
| 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 ILIKE '%GROONGA'; | ||
| id | content | ||
| ----+------------------------------------------------------ | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
23 changes: 23 additions & 0 deletions
23
expected/full-text-search/text/single/ilike/partial/bitmapscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| 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.'); | ||
| 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 ILIKE '%GROONGA%'; | ||
| id | content | ||
| ----+------------------------------------------------------- | ||
| 2 | Groonga is fast full text search engine. | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga. | ||
| 4 | groonga command is provided. | ||
| (3 rows) | ||
|
|
||
| DROP TABLE memos; |
23 changes: 23 additions & 0 deletions
23
expected/full-text-search/text/single/ilike/partial/indexscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| 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.'); | ||
| 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 ILIKE '%GROONGA%'; | ||
| id | content | ||
| ----+------------------------------------------------------- | ||
| 2 | Groonga is fast full text search engine. | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga. | ||
| 4 | groonga command is provided. | ||
| (3 rows) | ||
|
|
||
| DROP TABLE memos; |
23 changes: 23 additions & 0 deletions
23
expected/full-text-search/text/single/ilike/partial/seqscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| 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.'); | ||
| 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 ILIKE '%GROONGA%'; | ||
| id | content | ||
| ----+------------------------------------------------------- | ||
| 2 | Groonga is fast full text search engine. | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga. | ||
| 4 | groonga command is provided. | ||
| (3 rows) | ||
|
|
||
| DROP TABLE memos; |
20 changes: 20 additions & 0 deletions
20
expected/full-text-search/text/single/ilike/underscore/bitmapscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| CREATE TABLE memos ( | ||
| id integer, | ||
| content text | ||
| ); | ||
| INSERT INTO memos VALUES (1, ''); | ||
| INSERT INTO memos VALUES (2, 'a'); | ||
| INSERT INTO memos VALUES (3, 'ab'); | ||
| 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 ILIKE '_'; | ||
| id | content | ||
| ----+--------- | ||
| 2 | a | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
20 changes: 20 additions & 0 deletions
20
expected/full-text-search/text/single/ilike/underscore/indexscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| CREATE TABLE memos ( | ||
| id integer, | ||
| content text | ||
| ); | ||
| INSERT INTO memos VALUES (1, ''); | ||
| INSERT INTO memos VALUES (2, 'a'); | ||
| INSERT INTO memos VALUES (3, 'ab'); | ||
| 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 ILIKE '_'; | ||
| id | content | ||
| ----+--------- | ||
| 2 | a | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
20 changes: 20 additions & 0 deletions
20
expected/full-text-search/text/single/ilike/underscore/seqscan.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| CREATE TABLE memos ( | ||
| id integer, | ||
| content text | ||
| ); | ||
| INSERT INTO memos VALUES (1, ''); | ||
| INSERT INTO memos VALUES (2, 'a'); | ||
| INSERT INTO memos VALUES (3, 'ab'); | ||
| 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 ILIKE '_'; | ||
| id | content | ||
| ----+--------- | ||
| 2 | a | ||
| (1 row) | ||
|
|
||
| DROP TABLE memos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sql/full-text-search/text/single/ilike/begin/bitmapscan.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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.'); | ||
|
|
||
| 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 ILIKE 'POSTGRESQL%'; | ||
|
|
||
| DROP TABLE memos; |
21 changes: 21 additions & 0 deletions
21
sql/full-text-search/text/single/ilike/begin/indexscan.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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.'); | ||
|
|
||
| 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 ILIKE 'POSTGRESQL%'; | ||
|
|
||
| DROP TABLE memos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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.'); | ||
|
|
||
| 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 ILIKE 'POSTGRESQL%'; | ||
|
|
||
| DROP TABLE memos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 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'); | ||
|
|
||
| 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 ILIKE '%GROONGA'; | ||
|
|
||
| DROP TABLE memos; |
Oops, something went wrong.