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

Commitd874c6b

Browse files
author
Alexander Korotkov
committed
Regression tests for BETWEEN support in hash partitioning.
1 parent773fbb1 commitd874c6b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

‎expected/pg_pathman.out

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,16 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.hash_rel WHERE value = 2 OR value = 1;
190190
Filter: (value = 2)
191191
(5 rows)
192192

193+
EXPLAIN (COSTS OFF) SELECT * FROM test.hash_rel WHERE value BETWEEN 1 AND 2;
194+
QUERY PLAN
195+
-------------------------------------------------
196+
Append
197+
-> Seq Scan on hash_rel_1
198+
Filter: ((value >= 1) AND (value <= 2))
199+
-> Seq Scan on hash_rel_2
200+
Filter: ((value >= 1) AND (value <= 2))
201+
(5 rows)
202+
193203
EXPLAIN (COSTS OFF) SELECT * FROM test.num_range_rel WHERE id > 2500;
194204
QUERY PLAN
195205
-----------------------------------

‎sql/pg_pathman.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ SET enable_seqscan = ON;
6666
EXPLAIN (COSTS OFF)SELECT*FROMtest.hash_rel;
6767
EXPLAIN (COSTS OFF)SELECT*FROMtest.hash_relWHERE value=2;
6868
EXPLAIN (COSTS OFF)SELECT*FROMtest.hash_relWHERE value=2OR value=1;
69+
EXPLAIN (COSTS OFF)SELECT*FROMtest.hash_relWHERE value BETWEEN1AND2;
6970
EXPLAIN (COSTS OFF)SELECT*FROMtest.num_range_relWHERE id>2500;
7071
EXPLAIN (COSTS OFF)SELECT*FROMtest.num_range_relWHERE id>=1000AND id<3000;
7172
EXPLAIN (COSTS OFF)SELECT*FROMtest.num_range_relWHERE id>=1500AND id<2500;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp