diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-03-27 23:35:16 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-03-27 23:35:16 +0200 |
commit | e09b48316c22fce727bce3c89fa64fc627787e6a (patch) | |
tree | 107a22f368efd340c6f545f0e6b7130b5063aa08 /contrib/btree_gist/sql/bit.sql | |
parent | 735cd6128a6a401671126443a9af4324932a38d6 (diff) | |
download | postgresql-e09b48316c22fce727bce3c89fa64fc627787e6a.tar.gz postgresql-e09b48316c22fce727bce3c89fa64fc627787e6a.zip |
Add index-only scan support to btree_gist.
inet, cidr, and timetz indexes still cannot support index-only scans,
because they don't store the original unmodified value in the index, but a
derived approximate value.
Diffstat (limited to 'contrib/btree_gist/sql/bit.sql')
-rw-r--r-- | contrib/btree_gist/sql/bit.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/btree_gist/sql/bit.sql b/contrib/btree_gist/sql/bit.sql index a6b6ab3b3b7..a733042023f 100644 --- a/contrib/btree_gist/sql/bit.sql +++ b/contrib/btree_gist/sql/bit.sql @@ -29,3 +29,8 @@ SELECT count(*) FROM bittmp WHERE a = '011011000100010111011000110000100'; SELECT count(*) FROM bittmp WHERE a >= '011011000100010111011000110000100'; SELECT count(*) FROM bittmp WHERE a > '011011000100010111011000110000100'; + +-- Test index-only scans +SET enable_bitmapscan=off; +EXPLAIN (COSTS OFF) +SELECT a FROM bittmp WHERE a BETWEEN '1000000' and '1000001'; |