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

Commitf1e671a

Browse files
committed
Increase timeout in statement_timeout test from 1 second to 2 seconds.
We have once or twice seen failures suggesting that control didn't getto the exception block before the timeout elapsed, which is unlikelybut not impossible in a parallel regression test (with a dozen otherbackends competing for cycles). This change doesn't completely preventthe problem of course, but it should reduce the probability enough thatwe don't see it anymore. Per buildfarm results.
1 parent5266f22 commitf1e671a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ begin
20192019
begin
20202020
x := x + 1;
20212021
insert into foo values(x);
2022-
-- we assume this will take longer than1 second:
2022+
-- we assume this will take longer than2 seconds:
20232023
select count(*) into x from tenk1 a, tenk1 b, tenk1 c;
20242024
exception
20252025
when others then
@@ -2032,7 +2032,7 @@ begin
20322032
insert into foo values(x);
20332033
return x;
20342034
end$$ language plpgsql;
2035-
set statement_timeout to1000;
2035+
set statement_timeout to2000;
20362036
select blockme();
20372037
NOTICE: nyeah nyeah, can't stop me
20382038
blockme

‎src/test/regress/sql/plpgsql.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ begin
17551755
begin
17561756
x := x+1;
17571757
insert into foovalues(x);
1758-
-- we assume this will take longer than1 second:
1758+
-- we assume this will take longer than2 seconds:
17591759
selectcount(*) into xfrom tenk1 a, tenk1 b, tenk1 c;
17601760
exception
17611761
when others then
@@ -1769,7 +1769,7 @@ begin
17691769
return x;
17701770
end$$ language plpgsql;
17711771

1772-
set statement_timeout to1000;
1772+
set statement_timeout to2000;
17731773

17741774
select blockme();
17751775

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp