diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-22 18:27:54 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-22 18:27:54 +0000 |
commit | a9289708af0bff1c45deae79a7c8f6db75d8ca16 (patch) | |
tree | 1d9f62f2266b322379d797d73b9af640012e0699 /contrib/btree_gist/expected/btree_gist.out | |
parent | a54075a6d6df36f4c676486b4711ccfc650bf5e2 (diff) | |
download | postgresql-a9289708af0bff1c45deae79a7c8f6db75d8ca16.tar.gz postgresql-a9289708af0bff1c45deae79a7c8f6db75d8ca16.zip |
New contrib module for BTREE emulation in GiST.
From Oleg Bartunov and Teodor Sigaev.
Diffstat (limited to 'contrib/btree_gist/expected/btree_gist.out')
-rw-r--r-- | contrib/btree_gist/expected/btree_gist.out | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/contrib/btree_gist/expected/btree_gist.out b/contrib/btree_gist/expected/btree_gist.out new file mode 100644 index 00000000000..fdcbfd598a8 --- /dev/null +++ b/contrib/btree_gist/expected/btree_gist.out @@ -0,0 +1,39 @@ +-- +-- first, define the datatype. Turn off echoing so that expected file +-- does not depend on contents of seg.sql. +-- +\set ECHO none +create table inttmp (b int4); +\copy inttmp from 'data/test_btree.data' +create table tstmp ( t datetime ); +\copy tstmp from 'data/test_btree_ts.data' +-- without idx +select count(*) from inttmp where b <=10; + count +------- + 11 +(1 row) + +select count(*) from tstmp where t < '2001-05-29 08:33:09+04'; + count +------- + 7 +(1 row) + +-- create idx +create index aaaidx on inttmp using gist ( b ); +create index tsidx on tstmp using gist ( t ); +--with idx +set enable_seqscan=off; +select count(*) from inttmp where b <=10; + count +------- + 11 +(1 row) + +select count(*) from tstmp where t < '2001-05-29 08:33:09+04'; + count +------- + 7 +(1 row) + |