-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
1 parent
f3448b1
commit 13568b8
Showing
3 changed files
with
46 additions
and
1 deletion.
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,22 @@ | ||
CREATE TABLE issue226 ( | ||
id SERIAL8 NOT NULL PRIMARY KEY | ||
); | ||
CREATE INDEX idxissue226 | ||
ON issue226 USING zombodb (zdb('issue226', ctid), zdb(issue226)) WITH (url='localhost:9200/'); | ||
INSERT INTO issue226 (id) VALUES (default); | ||
BEGIN; | ||
INSERT INTO issue226 (id) VALUES (default); | ||
ABORT; | ||
VACUUM issue226; | ||
SELECT | ||
(SELECT count(*) FROM issue226) AS issue226, | ||
(SELECT count(*) FROM issue226 WHERE zdb('issue226', ctid) ==> 'id:*') AS issue226_all, | ||
(SELECT count(*) FROM issue226 WHERE zdb('issue226', ctid) ==> 'id:null') AS issue226_null, | ||
(SELECT zdb_estimate_count('issue226', 'id:*')) AS issue226_estimate_all, | ||
(SELECT zdb_estimate_count('issue226', 'id:null')) AS issue226_estimate_null; | ||
issue226 | issue226_all | issue226_null | issue226_estimate_all | issue226_estimate_null | ||
----------+--------------+---------------+-----------------------+------------------------ | ||
1 | 1 | 0 | 1 | 0 | ||
(1 row) | ||
|
||
DROP TABLE issue226 CASCADE; |
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,22 @@ | ||
CREATE TABLE issue226 ( | ||
id SERIAL8 NOT NULL PRIMARY KEY | ||
); | ||
CREATE INDEX idxissue226 | ||
ON issue226 USING zombodb (zdb('issue226', ctid), zdb(issue226)) WITH (url='localhost:9200/'); | ||
|
||
INSERT INTO issue226 (id) VALUES (default); | ||
|
||
BEGIN; | ||
INSERT INTO issue226 (id) VALUES (default); | ||
ABORT; | ||
|
||
VACUUM issue226; | ||
|
||
SELECT | ||
(SELECT count(*) FROM issue226) AS issue226, | ||
(SELECT count(*) FROM issue226 WHERE zdb('issue226', ctid) ==> 'id:*') AS issue226_all, | ||
(SELECT count(*) FROM issue226 WHERE zdb('issue226', ctid) ==> 'id:null') AS issue226_null, | ||
(SELECT zdb_estimate_count('issue226', 'id:*')) AS issue226_estimate_all, | ||
(SELECT zdb_estimate_count('issue226', 'id:null')) AS issue226_estimate_null; | ||
|
||
DROP TABLE issue226 CASCADE; |
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 |
---|---|---|
|
@@ -103,4 +103,5 @@ issue-214 | |
issue-218 | ||
issue-219 | ||
issue-210 | ||
issue-224 | ||
issue-224 | ||
issue-226 |