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

Commitd6a6957

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

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
droptable bytea_test_table;
750750

751751
-- Test parallel string_agg and array_agg
752-
createtablepagg_test (xint, yint);
752+
createtablepagg_test (xint, yint) with (autovacuum_enabled= off);
753753
insert into pagg_test
754754
select (case x %4 when1 thennull else x end), x %10
755755
from generate_series(1,5000) x;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp