Fix slow animal timeouts in 032_relfilenode_reuse.pl.
authorThomas Munro <tmunro@postgresql.org>
Fri, 13 May 2022 23:58:10 +0000 (11:58 +1200)
committerThomas Munro <tmunro@postgresql.org>
Fri, 13 May 2022 23:58:10 +0000 (11:58 +1200)
commit93759c665d482b5bf76ca22c9cac91e713e9386e
treece5f9b9de94618f9a180b711709b1174b261dec6
parentfcab82a2d79b4533cfdc8e8d5e00dbdf6830d63a
Fix slow animal timeouts in 032_relfilenode_reuse.pl.

Per BF animal chipmunk:  CREATE DATABASE could apparently fail due to an
AV process being in the template database and not quitting fast enough
for the 5 second timeout in CountOtherDBBackends().  The test script had
autovacuum_naptime=1s to encourage more activity and opening of fds, but
that wasn't strictly necessary for this test.  Take it out.

Per BF animal skink:  there was a 300s timeout for all tests in the
script, but apparently that was not enough under valgrind.  Let's use
the standard timeout $PostgreSQL::Test::Utils::timeout_default, but
restart it for each query we run.

Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKGKa8HNJaA24gqiiFoGy0ysndeVoJsHvX_q1-DVLFaGAmw%40mail.gmail.com
src/test/recovery/t/032_relfilenode_reuse.pl