Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d6a6957

Browse files
committed
Fix unstable aggregate regression test
Buildfarm member avocet has shown a plan change by switching the finalize aggregate stage to use a GroupAggregate rather than a HashAggregate. This is consistent with autovacuum having triggered on the table, per analysis by Alexander Lakhin. Fix this by disabling autovacuum on the table. Reported-by: Alexander Lakhin Discussion: https://postgr.es/m/d4493a28-589a-5328-fed5-250f2d7d3e2a@gmail.com Backpatch-through: 16, where this test was added.
1 parent e634132 commit d6a6957

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/expected/aggregates.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,7 @@ select string_agg(v, decode('ee', 'hex')) from bytea_test_table;
19301930

19311931
drop table bytea_test_table;
19321932
-- Test parallel string_agg and array_agg
1933-
create table pagg_test (x int, y int);
1933+
create table pagg_test (x int, y int) with (autovacuum_enabled = off);
19341934
insert into pagg_test
19351935
select (case x % 4 when 1 then null else x end), x % 10
19361936
from generate_series(1,5000) x;

src/test/regress/sql/aggregates.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ select string_agg(v, decode('ee', 'hex')) from bytea_test_table;
749749
drop table bytea_test_table;
750750

751751
-- Test parallel string_agg and array_agg
752-
create table pagg_test (x int, y int);
752+
create table pagg_test (x int, y int) with (autovacuum_enabled = off);
753753
insert into pagg_test
754754
select (case x % 4 when 1 then null else x end), x % 10
755755
from generate_series(1,5000) x;

0 commit comments

Comments
 (0)