diff options
author | Noah Misch <noah@leadboat.com> | 2022-03-04 18:53:13 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2022-03-04 18:53:13 -0800 |
commit | 766075105c21442418359221e0a0da43040b273c (patch) | |
tree | 1c78a4c7fc1a18b51e7e4f93cdd863ca9b4d2c3a /src | |
parent | f2698ea02ca8a56f38935d2b300ac54936712558 (diff) | |
download | postgresql-766075105c21442418359221e0a0da43040b273c.tar.gz postgresql-766075105c21442418359221e0a0da43040b273c.zip |
Use PG_TEST_TIMEOUT_DEFAULT for pg_regress suite non-elapsing timeouts.
Currently, only contrib/test_decoding has this property. Use \getenv to
load the timeout value.
Discussion: https://postgr.es/m/20220218052842.GA3627003@rfd.leadboat.com
Diffstat (limited to 'src')
-rw-r--r-- | src/test/regress/expected/stats.out | 5 | ||||
-rw-r--r-- | src/test/regress/sql/stats.sql | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/test/regress/expected/stats.out b/src/test/regress/expected/stats.out index 3e9ab0915fe..b7416c8f8fb 100644 --- a/src/test/regress/expected/stats.out +++ b/src/test/regress/expected/stats.out @@ -34,7 +34,10 @@ declare updated3 bool; updated4 bool; begin - -- we don't want to wait forever; loop will exit after 30 seconds + -- We don't want to wait forever. No timeout suffices if the OS drops our + -- stats traffic because an earlier test file left a full UDP buffer. + -- Hence, don't use PG_TEST_TIMEOUT_DEFAULT, which may be large for + -- can't-happen timeouts. Exit after 30 seconds. for i in 1 .. 300 loop -- With parallel query, the seqscan and indexscan on tenk2 might be done diff --git a/src/test/regress/sql/stats.sql b/src/test/regress/sql/stats.sql index 82e6f24c391..dbc2dd28b6b 100644 --- a/src/test/regress/sql/stats.sql +++ b/src/test/regress/sql/stats.sql @@ -33,7 +33,10 @@ declare updated3 bool; updated4 bool; begin - -- we don't want to wait forever; loop will exit after 30 seconds + -- We don't want to wait forever. No timeout suffices if the OS drops our + -- stats traffic because an earlier test file left a full UDP buffer. + -- Hence, don't use PG_TEST_TIMEOUT_DEFAULT, which may be large for + -- can't-happen timeouts. Exit after 30 seconds. for i in 1 .. 300 loop -- With parallel query, the seqscan and indexscan on tenk2 might be done |