]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Increase timeout in statement_timeout test from 1 second to 2 seconds.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Jun 2006 16:21:32 +0000 (16:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Jun 2006 16:21:32 +0000 (16:21 +0000)
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.

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

index 961fe9f46ee25210dc50f01d2e5998a24fda5d4d..a73ea635d80384f11de8c6d0c41370205eb5f673 100644 (file)
@@ -2019,7 +2019,7 @@ begin
   begin
     x := x + 1;
     insert into foo values(x);
-    -- we assume this will take longer than 1 second:
+    -- we assume this will take longer than 2 seconds:
     select count(*) into x from tenk1 a, tenk1 b, tenk1 c;
   exception
     when others then
@@ -2032,7 +2032,7 @@ begin
   insert into foo values(x);
   return x;
 end$$ language plpgsql;
-set statement_timeout to 1000;
+set statement_timeout to 2000;
 select blockme();
 NOTICE:  nyeah nyeah, can't stop me
  blockme 
index 6bffb3e13b619d079d1c4afc1c668ec4d31f5305..cbb2bdc57c8e8db4a72297b86032e2b4af86c25c 100644 (file)
@@ -1755,7 +1755,7 @@ begin
   begin
     x := x + 1;
     insert into foo values(x);
-    -- we assume this will take longer than 1 second:
+    -- we assume this will take longer than 2 seconds:
     select count(*) into x from tenk1 a, tenk1 b, tenk1 c;
   exception
     when others then
@@ -1769,7 +1769,7 @@ begin
   return x;
 end$$ language plpgsql;
 
-set statement_timeout to 1000;
+set statement_timeout to 2000;
 
 select blockme();