aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/expected/btree_gist.out
blob: fdcbfd598a87e9df5b68b5026658cb06c812797b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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)