]> granicus.if.org Git - postgresql/blob - contrib/intarray/expected/_int.out
Move WAL params higher in file, next to fsync option.
[postgresql] / contrib / intarray / expected / _int.out
1 --
2 -- first, define the datatype.  Turn off echoing so that expected file
3 -- does not depend on contents of seg.sql.
4 --
5 \set ECHO none
6 CREATE TABLE test__int( a int[] );
7 \copy test__int from 'data/test__int.data'
8 SELECT count(*) from test__int WHERE a && '{23,50}';
9  count 
10 -------
11    403
12 (1 row)
13
14 SELECT count(*) from test__int WHERE a @ '{23,50}';
15  count 
16 -------
17     12
18 (1 row)
19
20 CREATE INDEX text_idx on test__int using gist ( a gist__int_ops ) with ( islossy );
21 SELECT count(*) from test__int WHERE a && '{23,50}';
22  count 
23 -------
24    403
25 (1 row)
26
27 SELECT count(*) from test__int WHERE a @ '{23,50}';
28  count 
29 -------
30     12
31 (1 row)
32
33 drop index text_idx;
34 CREATE INDEX text_idx on test__int using gist ( a gist__intbig_ops ) with ( islossy );
35 SELECT count(*) from test__int WHERE a && '{23,50}';
36  count 
37 -------
38    403
39 (1 row)
40
41 SELECT count(*) from test__int WHERE a @ '{23,50}';
42  count 
43 -------
44     12
45 (1 row)
46