forked from postgrespro/pgsphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoc100.out
263 lines (243 loc) · 11.7 KB
/
moc100.out
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
\set ECHO none
outputfile_for_majorversion
-----------------------------
10, 11, 12
(1 row)
outputfile_for_arch_bits
--------------------------
64-bit
(1 row)
CREATE TABLE moc100 (
ivoid text,
coverage smoc,
ref_system_name text
);
COPY moc100 FROM STDIN;
CREATE INDEX ON moc100 USING GIN (coverage);
SELECT ivoid FROM moc100 WHERE coverage && '4/0' ORDER BY ivoid;
ivoid
------------------------------------------
ivo://byu.arvo/dfbsspec/q/getssa
ivo://cadc.nrc.ca/archive/cfht
ivo://cadc.nrc.ca/archive/hst
ivo://cds.vizier/b/assocdata
ivo://cds.vizier/b/swift
ivo://cds.vizier/i/241
ivo://cds.vizier/iv/12
ivo://cds.vizier/ix/13
ivo://cds.vizier/j/a+a/316/147
ivo://cds.vizier/j/a+as/105/311
ivo://cds.vizier/j/a+as/122/235
ivo://chivo/gaia/q/dr1
ivo://chivo/openngc/q/data
ivo://cxc.harvard.edu/csc
ivo://irsa.ipac/2mass/catalog/psc
ivo://irsa.ipac/2mass/catalog/xsc
ivo://irsa.ipac/2mass/images/asky-ql
ivo://irsa.ipac/cosmos/images
ivo://irsa.ipac/iras/images/issa
ivo://irsa.ipac/mast/scrapbook
ivo://irsa.ipac/spitzer/images/swire
ivo://mssl.ucl.ac.uk/xmmsuss_dsa/xmmsuss
ivo://ned.ipac/sia
ivo://ned.ipac/tap
ivo://svo.cab/cat/gbs
ivo://svo.cab/cat/uves
ivo://svo.cab/cat/xshooter
ivo://vopdc.iap/fss
ivo://vopdc.obspm/imcce/m4ast
ivo://vopdc.obspm/imcce/miriade
ivo://vopdc.obspm/imcce/skybot
ivo://vopdc.obspm/lesia/bestars/besc
ivo://vopdc.obspm/lesia/bestars/bess
ivo://vopdc.obspm/luth/exoplanet
ivo://vopdc.obspm/luth/hess
(35 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage && '0/';
QUERY PLAN
----------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=0.00..4.01 rows=1 width=96) (actual rows=0 loops=1)
Recheck Cond: (coverage && '0/'::smoc)
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..0.00 rows=1 width=0) (actual rows=0 loops=1)
Index Cond: (coverage && '0/'::smoc)
(4 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage && '4/0';
QUERY PLAN
--------------------------------------------------------------------------------
Seq Scan on moc100 (cost=0.00..6.26 rows=1 width=96) (actual rows=35 loops=1)
Filter: (coverage && '4/0'::smoc)
Rows Removed by Filter: 66
Buffers: shared hit=114
(4 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage = '0/0-11';
QUERY PLAN
--------------------------------------------------------------------------------
Seq Scan on moc100 (cost=0.00..6.26 rows=1 width=96) (actual rows=23 loops=1)
Filter: (coverage = '0/0-11'::smoc)
Rows Removed by Filter: 78
Buffers: shared hit=59
(4 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage = '6/43225,43227';
QUERY PLAN
-------------------------------------------------------------------------------
Seq Scan on moc100 (cost=0.00..6.26 rows=1 width=96) (actual rows=1 loops=1)
Filter: (coverage = '6/43225 43227'::smoc)
Rows Removed by Filter: 100
Buffers: shared hit=59
(4 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage = '0/';
QUERY PLAN
-------------------------------------------------------------------------------
Seq Scan on moc100 (cost=0.00..6.26 rows=1 width=96) (actual rows=1 loops=1)
Filter: (coverage = '0/'::smoc)
Rows Removed by Filter: 100
Buffers: shared hit=59
(4 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage <> '0/0-11';
QUERY PLAN
----------------------------------------------------------------------------------
Seq Scan on moc100 (cost=0.00..6.26 rows=100 width=96) (actual rows=78 loops=1)
Filter: (coverage <> '0/0-11'::smoc)
Rows Removed by Filter: 23
Buffers: shared hit=59
(4 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage <> '6/43225,43227';
QUERY PLAN
-----------------------------------------------------------------------------------
Seq Scan on moc100 (cost=0.00..6.26 rows=100 width=96) (actual rows=100 loops=1)
Filter: (coverage <> '6/43225 43227'::smoc)
Rows Removed by Filter: 1
Buffers: shared hit=59
(4 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage <> '0/';
QUERY PLAN
-----------------------------------------------------------------------------------
Seq Scan on moc100 (cost=0.00..6.26 rows=100 width=96) (actual rows=100 loops=1)
Filter: (coverage <> '0/'::smoc)
Rows Removed by Filter: 1
Buffers: shared hit=59
(4 rows)
SET enable_seqscan = off;
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage && '4/0';
QUERY PLAN
------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=36.00..40.01 rows=1 width=96) (actual rows=35 loops=1)
Recheck Cond: (coverage && '4/0'::smoc)
Heap Blocks: exact=5
Buffers: shared hit=85
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..36.00 rows=1 width=0) (actual rows=35 loops=1)
Index Cond: (coverage && '4/0'::smoc)
Buffers: shared hit=9
(7 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage <@ '4/0';
QUERY PLAN
------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=44.00..48.01 rows=1 width=96) (actual rows=1 loops=1)
Recheck Cond: (coverage <@ '4/0'::smoc)
Rows Removed by Index Recheck: 35
Heap Blocks: exact=5
Buffers: shared hit=33
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..44.00 rows=1 width=0) (actual rows=36 loops=1)
Index Cond: (coverage <@ '4/0'::smoc)
Buffers: shared hit=12
(8 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage @> '4/0';
QUERY PLAN
------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=36.00..40.01 rows=1 width=96) (actual rows=28 loops=1)
Recheck Cond: (coverage @> '4/0'::smoc)
Rows Removed by Index Recheck: 1
Heap Blocks: exact=4
Buffers: shared hit=36
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..36.00 rows=1 width=0) (actual rows=29 loops=1)
Index Cond: (coverage @> '4/0'::smoc)
Buffers: shared hit=9
(8 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage = '0/0-11';
QUERY PLAN
---------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=98308.01..98312.02 rows=1 width=96) (actual rows=23 loops=1)
Recheck Cond: (coverage = '0/0-11'::smoc)
Rows Removed by Index Recheck: 1
Heap Blocks: exact=2
Buffers: shared hit=24581
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..98308.01 rows=1 width=0) (actual rows=24 loops=1)
Index Cond: (coverage = '0/0-11'::smoc)
Buffers: shared hit=24577
(8 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage = '6/43225,43227';
QUERY PLAN
------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=12.01..16.02 rows=1 width=96) (actual rows=1 loops=1)
Recheck Cond: (coverage = '6/43225 43227'::smoc)
Rows Removed by Index Recheck: 28
Heap Blocks: exact=3
Buffers: shared hit=12
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..12.01 rows=1 width=0) (actual rows=29 loops=1)
Index Cond: (coverage = '6/43225 43227'::smoc)
Buffers: shared hit=3
(8 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage = '0/';
QUERY PLAN
-----------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=12.01..16.02 rows=1 width=96) (actual rows=1 loops=1)
Recheck Cond: (coverage = '0/'::smoc)
Heap Blocks: exact=1
Buffers: shared hit=5
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..12.01 rows=1 width=0) (actual rows=1 loops=1)
Index Cond: (coverage = '0/'::smoc)
Buffers: shared hit=4
(7 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage <> '0/0-11';
QUERY PLAN
------------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=98316.77..98323.02 rows=100 width=96) (actual rows=78 loops=1)
Recheck Cond: (coverage <> '0/0-11'::smoc)
Rows Removed by Index Recheck: 23
Heap Blocks: exact=5
Buffers: shared hit=24821
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..98316.75 rows=100 width=0) (actual rows=101 loops=1)
Index Cond: (coverage <> '0/0-11'::smoc)
Buffers: shared hit=24762
(8 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage <> '6/43225,43227';
QUERY PLAN
------------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=98316.77..98323.02 rows=100 width=96) (actual rows=100 loops=1)
Recheck Cond: (coverage <> '6/43225 43227'::smoc)
Rows Removed by Index Recheck: 1
Heap Blocks: exact=5
Buffers: shared hit=247
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..98316.75 rows=100 width=0) (actual rows=101 loops=1)
Index Cond: (coverage <> '6/43225 43227'::smoc)
Buffers: shared hit=188
(8 rows)
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
SELECT * FROM moc100 WHERE coverage <> '0/';
QUERY PLAN
------------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on moc100 (cost=98316.77..98323.02 rows=100 width=96) (actual rows=100 loops=1)
Recheck Cond: (coverage <> '0/'::smoc)
Rows Removed by Index Recheck: 1
Heap Blocks: exact=5
Buffers: shared hit=245
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..98316.75 rows=100 width=0) (actual rows=101 loops=1)
Index Cond: (coverage <> '0/'::smoc)
Buffers: shared hit=186
(8 rows)