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

Commit f1e671a

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 get to the exception block before the timeout elapsed, which is unlikely but not impossible in a parallel regression test (with a dozen other backends competing for cycles). This change doesn't completely prevent the problem of course, but it should reduce the probability enough that we don't see it anymore. Per buildfarm results.
1 parent 5266f22 commit f1e671a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/regress/expected/plpgsql.out

+2-2
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 than 1 second:
2022+
-- we assume this will take longer than 2 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 to 1000;
2035+
set statement_timeout to 2000;
20362036
select blockme();
20372037
NOTICE: nyeah nyeah, can't stop me
20382038
blockme

src/test/regress/sql/plpgsql.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ begin
17551755
begin
17561756
x := x + 1;
17571757
insert into foo values(x);
1758-
-- we assume this will take longer than 1 second:
1758+
-- we assume this will take longer than 2 seconds:
17591759
select count(*) into x from 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 to 1000;
1772+
set statement_timeout to 2000;
17731773

17741774
select blockme();
17751775

0 commit comments

Comments
 (0)