Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98fc1ba

Browse files
df7cbmsdemlei
authored andcommitted
GIN: check && 'empty'
1 parent3fece18 commit98fc1ba

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎expected/moc100.out

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ SELECT ivoid FROM moc100 WHERE coverage && '4/0' ORDER BY ivoid;
4545
ivo://vopdc.obspm/luth/hess
4646
(35 rows)
4747

48+
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
49+
SELECT * FROM moc100 WHERE coverage && '0/';
50+
QUERY PLAN
51+
----------------------------------------------------------------------------------------------------------
52+
Bitmap Heap Scan on moc100 (cost=0.00..4.01 rows=1 width=96) (actual rows=0 loops=1)
53+
Recheck Cond: (coverage && '0/'::smoc)
54+
-> Bitmap Index Scan on moc100_coverage_idx (cost=0.00..0.00 rows=1 width=0) (actual rows=0 loops=1)
55+
Index Cond: (coverage && '0/'::smoc)
56+
(4 rows)
57+
4858
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
4959
SELECT * FROM moc100 WHERE coverage && '4/0';
5060
QUERY PLAN

‎sql/moc100.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ CREATE INDEX ON moc100 USING GIN (coverage);
111111

112112
SELECT ivoidFROM moc100WHERE coverage &&'4/0'ORDER BY ivoid;
113113

114+
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
115+
SELECT*FROM moc100WHERE coverage &&'0/';
116+
114117
EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF)
115118
SELECT*FROM moc100WHERE coverage &&'4/0';
116119

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp