Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub: fix #21 Reported by yongxianggao-chanjet. Thanks!!!
- Loading branch information
Showing
7 changed files
with
279 additions
and
5 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,29 @@ | ||
CREATE TABLE ids ( | ||
id integer | ||
); | ||
INSERT INTO ids VALUES (2); | ||
INSERT INTO ids VALUES (7); | ||
INSERT INTO ids VALUES (6); | ||
INSERT INTO ids VALUES (4); | ||
INSERT INTO ids VALUES (5); | ||
INSERT INTO ids VALUES (8); | ||
INSERT INTO ids VALUES (1); | ||
INSERT INTO ids VALUES (10); | ||
INSERT INTO ids VALUES (3); | ||
INSERT INTO ids VALUES (9); | ||
CREATE INDEX pgroonga_index ON ids USING pgroonga (id); | ||
SET enable_seqscan = off; | ||
SET enable_indexscan = off; | ||
SET enable_bitmapscan = on; | ||
SELECT id | ||
FROM ids | ||
WHERE id IN (6, 1, 7) | ||
ORDER BY id ASC; | ||
id | ||
---- | ||
1 | ||
6 | ||
7 | ||
(3 rows) | ||
|
||
DROP TABLE ids; |
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,29 @@ | ||
CREATE TABLE ids ( | ||
id integer | ||
); | ||
INSERT INTO ids VALUES (2); | ||
INSERT INTO ids VALUES (7); | ||
INSERT INTO ids VALUES (6); | ||
INSERT INTO ids VALUES (4); | ||
INSERT INTO ids VALUES (5); | ||
INSERT INTO ids VALUES (8); | ||
INSERT INTO ids VALUES (1); | ||
INSERT INTO ids VALUES (10); | ||
INSERT INTO ids VALUES (3); | ||
INSERT INTO ids VALUES (9); | ||
CREATE INDEX pgroonga_index ON ids USING pgroonga (id); | ||
SET enable_seqscan = off; | ||
SET enable_indexscan = on; | ||
SET enable_bitmapscan = off; | ||
SELECT id | ||
FROM ids | ||
WHERE id IN (6, 1, 7) | ||
ORDER BY id ASC; | ||
id | ||
---- | ||
1 | ||
6 | ||
7 | ||
(3 rows) | ||
|
||
DROP TABLE ids; |
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,28 @@ | ||
CREATE TABLE ids ( | ||
id integer | ||
); | ||
INSERT INTO ids VALUES (2); | ||
INSERT INTO ids VALUES (7); | ||
INSERT INTO ids VALUES (6); | ||
INSERT INTO ids VALUES (4); | ||
INSERT INTO ids VALUES (5); | ||
INSERT INTO ids VALUES (8); | ||
INSERT INTO ids VALUES (1); | ||
INSERT INTO ids VALUES (10); | ||
INSERT INTO ids VALUES (3); | ||
INSERT INTO ids VALUES (9); | ||
SET enable_seqscan = on; | ||
SET enable_indexscan = off; | ||
SET enable_bitmapscan = off; | ||
SELECT id | ||
FROM ids | ||
WHERE id IN (6, 1, 7) | ||
ORDER BY id ASC; | ||
id | ||
---- | ||
1 | ||
6 | ||
7 | ||
(3 rows) | ||
|
||
DROP TABLE ids; |
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,27 @@ | ||
CREATE TABLE ids ( | ||
id integer | ||
); | ||
|
||
INSERT INTO ids VALUES (2); | ||
INSERT INTO ids VALUES (7); | ||
INSERT INTO ids VALUES (6); | ||
INSERT INTO ids VALUES (4); | ||
INSERT INTO ids VALUES (5); | ||
INSERT INTO ids VALUES (8); | ||
INSERT INTO ids VALUES (1); | ||
INSERT INTO ids VALUES (10); | ||
INSERT INTO ids VALUES (3); | ||
INSERT INTO ids VALUES (9); | ||
|
||
CREATE INDEX pgroonga_index ON ids USING pgroonga (id); | ||
|
||
SET enable_seqscan = off; | ||
SET enable_indexscan = off; | ||
SET enable_bitmapscan = on; | ||
|
||
SELECT id | ||
FROM ids | ||
WHERE id IN (6, 1, 7) | ||
ORDER BY id ASC; | ||
|
||
DROP TABLE ids; |
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,27 @@ | ||
CREATE TABLE ids ( | ||
id integer | ||
); | ||
|
||
INSERT INTO ids VALUES (2); | ||
INSERT INTO ids VALUES (7); | ||
INSERT INTO ids VALUES (6); | ||
INSERT INTO ids VALUES (4); | ||
INSERT INTO ids VALUES (5); | ||
INSERT INTO ids VALUES (8); | ||
INSERT INTO ids VALUES (1); | ||
INSERT INTO ids VALUES (10); | ||
INSERT INTO ids VALUES (3); | ||
INSERT INTO ids VALUES (9); | ||
|
||
CREATE INDEX pgroonga_index ON ids USING pgroonga (id); | ||
|
||
SET enable_seqscan = off; | ||
SET enable_indexscan = on; | ||
SET enable_bitmapscan = off; | ||
|
||
SELECT id | ||
FROM ids | ||
WHERE id IN (6, 1, 7) | ||
ORDER BY id ASC; | ||
|
||
DROP TABLE ids; |
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,25 @@ | ||
CREATE TABLE ids ( | ||
id integer | ||
); | ||
|
||
INSERT INTO ids VALUES (2); | ||
INSERT INTO ids VALUES (7); | ||
INSERT INTO ids VALUES (6); | ||
INSERT INTO ids VALUES (4); | ||
INSERT INTO ids VALUES (5); | ||
INSERT INTO ids VALUES (8); | ||
INSERT INTO ids VALUES (1); | ||
INSERT INTO ids VALUES (10); | ||
INSERT INTO ids VALUES (3); | ||
INSERT INTO ids VALUES (9); | ||
|
||
SET enable_seqscan = on; | ||
SET enable_indexscan = off; | ||
SET enable_bitmapscan = off; | ||
|
||
SELECT id | ||
FROM ids | ||
WHERE id IN (6, 1, 7) | ||
ORDER BY id ASC; | ||
|
||
DROP TABLE ids; |
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