mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 01:26:51 +02:00
Further improve stability of partition_prune regression test.
Commits 4ea03f3f4
et al arranged to filter out row counts in parallel
plans, because those are dependent on the number of workers actually
obtained. Somehow I missed that the 'Rows Removed by Filter' counts
can also vary, so fix that too. Per buildfarm.
This seems worth a last-minute patch because unreliable regression
tests are a serious pain in the rear for packagers.
Like the previous patch, back-patch to v11 where this test was
introduced.
This commit is contained in:
parent
c1646c81ef
commit
95a8394ac7
@ -1992,6 +1992,7 @@ begin
|
|||||||
loop
|
loop
|
||||||
ln := regexp_replace(ln, 'Workers Launched: \d+', 'Workers Launched: N');
|
ln := regexp_replace(ln, 'Workers Launched: \d+', 'Workers Launched: N');
|
||||||
ln := regexp_replace(ln, 'actual rows=\d+ loops=\d+', 'actual rows=N loops=N');
|
ln := regexp_replace(ln, 'actual rows=\d+ loops=\d+', 'actual rows=N loops=N');
|
||||||
|
ln := regexp_replace(ln, 'Rows Removed by Filter: \d+', 'Rows Removed by Filter: N');
|
||||||
return next ln;
|
return next ln;
|
||||||
end loop;
|
end loop;
|
||||||
end;
|
end;
|
||||||
@ -2296,7 +2297,7 @@ select explain_parallel_append('select avg(ab.a) from ab inner join lprt_a a on
|
|||||||
-> Nested Loop (actual rows=N loops=N)
|
-> Nested Loop (actual rows=N loops=N)
|
||||||
-> Parallel Seq Scan on lprt_a a (actual rows=N loops=N)
|
-> Parallel Seq Scan on lprt_a a (actual rows=N loops=N)
|
||||||
Filter: (a = ANY ('{1,0,0}'::integer[]))
|
Filter: (a = ANY ('{1,0,0}'::integer[]))
|
||||||
Rows Removed by Filter: 1
|
Rows Removed by Filter: N
|
||||||
-> Append (actual rows=N loops=N)
|
-> Append (actual rows=N loops=N)
|
||||||
-> Index Scan using ab_a1_b1_a_idx on ab_a1_b1 (actual rows=N loops=N)
|
-> Index Scan using ab_a1_b1_a_idx on ab_a1_b1 (actual rows=N loops=N)
|
||||||
Index Cond: (a = a.a)
|
Index Cond: (a = a.a)
|
||||||
@ -2330,7 +2331,7 @@ select explain_parallel_append('select avg(ab.a) from ab inner join lprt_a a on
|
|||||||
-> Nested Loop (actual rows=N loops=N)
|
-> Nested Loop (actual rows=N loops=N)
|
||||||
-> Parallel Seq Scan on lprt_a a (actual rows=N loops=N)
|
-> Parallel Seq Scan on lprt_a a (actual rows=N loops=N)
|
||||||
Filter: (a = ANY ('{1,0,0}'::integer[]))
|
Filter: (a = ANY ('{1,0,0}'::integer[]))
|
||||||
Rows Removed by Filter: 1
|
Rows Removed by Filter: N
|
||||||
-> Append (actual rows=N loops=N)
|
-> Append (actual rows=N loops=N)
|
||||||
-> Index Scan using ab_a1_b1_a_idx on ab_a1_b1 (never executed)
|
-> Index Scan using ab_a1_b1_a_idx on ab_a1_b1 (never executed)
|
||||||
Index Cond: (a = a.a)
|
Index Cond: (a = a.a)
|
||||||
|
@ -467,6 +467,7 @@ begin
|
|||||||
loop
|
loop
|
||||||
ln := regexp_replace(ln, 'Workers Launched: \d+', 'Workers Launched: N');
|
ln := regexp_replace(ln, 'Workers Launched: \d+', 'Workers Launched: N');
|
||||||
ln := regexp_replace(ln, 'actual rows=\d+ loops=\d+', 'actual rows=N loops=N');
|
ln := regexp_replace(ln, 'actual rows=\d+ loops=\d+', 'actual rows=N loops=N');
|
||||||
|
ln := regexp_replace(ln, 'Rows Removed by Filter: \d+', 'Rows Removed by Filter: N');
|
||||||
return next ln;
|
return next ln;
|
||||||
end loop;
|
end loop;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user