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

Commitb2ff37d

Browse files
committed
Add minimal test for EXPLAIN ANALYZE of parallel query.
This displays the number of workers launched, thus the test isdependant on configuration to some degree. We'll see whether thatturns out ot be a problem.Author: Rafia SabihDiscussion:https://postgr.es/m/20170331185540.zmsue4ndvqtnayqw@alap3.anarazel.de
1 parent5a59315 commitb2ff37d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎src/test/regress/expected/select_parallel.out

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,16 @@ explain (costs off)
280280
Index Cond: (unique1 = 1)
281281
(5 rows)
282282

283+
-- to increase the parallel query test coverage
284+
EXPLAIN (analyze, timing off, summary off, costs off) SELECT * FROM tenk1;
285+
QUERY PLAN
286+
-------------------------------------------------------------
287+
Gather (actual rows=10000 loops=1)
288+
Workers Planned: 4
289+
Workers Launched: 4
290+
-> Parallel Seq Scan on tenk1 (actual rows=2000 loops=5)
291+
(4 rows)
292+
283293
-- provoke error in worker
284294
select stringu1::int2 from tenk1 where unique1 = 1;
285295
ERROR: invalid input syntax for integer: "BAAAAA"

‎src/test/regress/sql/select_parallel.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ set force_parallel_mode=1;
116116
explain (costs off)
117117
select stringu1::int2from tenk1where unique1=1;
118118

119+
-- to increase the parallel query test coverage
120+
EXPLAIN (analyze, timing off, summary off, costs off)SELECT*FROM tenk1;
121+
119122
-- provoke error in worker
120123
select stringu1::int2from tenk1where unique1=1;
121124

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp