Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO: * Document
- Loading branch information
Showing
28 changed files
with
648 additions
and
4 deletions.
There are no files selected for viewing
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, '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.'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = on; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ '\Agroonga'; | ||
| id | content | ||
| ----+------------------------------------------ | ||
| 2 | Groonga is fast full text search engine. | ||
| (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
| 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, '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.'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = on; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ '\Agroonga'; | ||
| id | content | ||
| ----+------------------------------------------ | ||
| 2 | Groonga is fast full text search engine. | ||
| (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
| 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, '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.'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = on; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ '\Agroonga'; | ||
| id | content | ||
| ----+------------------------------------------ | ||
| 2 | Groonga is fast full text search engine. | ||
| (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
| 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, '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'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = on; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ 'groonga\z'; | ||
| id | content | ||
| ----+------------------------------------------------------ | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga | ||
| (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
| 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, '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'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = on; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ 'groonga\z'; | ||
| id | content | ||
| ----+------------------------------------------------------ | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga | ||
| (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
| 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, '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'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = on; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ 'groonga\z'; | ||
| id | content | ||
| ----+------------------------------------------------------ | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga | ||
| (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
| 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, 'PostgreSQL'); | ||
| INSERT INTO memos VALUES (2, 'Groonga'); | ||
| INSERT INTO memos VALUES (3, 'PGroonga'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = on; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ '\Agroonga\z'; | ||
| id | content | ||
| ----+--------- | ||
| 2 | Groonga | ||
| (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
| 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, 'PostgreSQL'); | ||
| INSERT INTO memos VALUES (2, 'Groonga'); | ||
| INSERT INTO memos VALUES (3, 'PGroonga'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = on; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ '\Agroonga\z'; | ||
| id | content | ||
| ----+--------- | ||
| 2 | Groonga | ||
| (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
| 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, 'PostgreSQL'); | ||
| INSERT INTO memos VALUES (2, 'Groonga'); | ||
| INSERT INTO memos VALUES (3, 'PGroonga'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = on; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ '\Agroonga\z'; | ||
| id | content | ||
| ----+--------- | ||
| 2 | Groonga | ||
| (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
| 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.'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = on; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ 'groonga'; | ||
| id | content | ||
| ----+------------------------------------------------------- | ||
| 2 | Groonga is fast full text search engine. | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga. | ||
| (2 rows) | ||
|
|
||
| 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.'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = off; | ||
| SET enable_indexscan = on; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ 'groonga'; | ||
| id | content | ||
| ----+------------------------------------------------------- | ||
| 2 | Groonga is fast full text search engine. | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga. | ||
| (2 rows) | ||
|
|
||
| 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.'); | ||
| CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops); | ||
| SET enable_seqscan = on; | ||
| SET enable_indexscan = off; | ||
| SET enable_bitmapscan = off; | ||
| SELECT id, content | ||
| FROM memos | ||
| WHERE content @~ 'groonga'; | ||
| id | content | ||
| ----+------------------------------------------------------- | ||
| 2 | Groonga is fast full text search engine. | ||
| 3 | PGroonga is a PostgreSQL extension that uses Groonga. | ||
| (2 rows) | ||
|
|
||
| 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
Oops, something went wrong.