On some platform (in my case Rocky Linux 10 running on VitualBox)
fails to finish shutdownall after test1. This could be caused by the
failover in the test to fail to restore the signal handler which
should accept shutdown signal from shutdownall. Adding "sleep 5"
before shutdownall seems to mitigate the problem.
Author: Tatsuo Ishii <ishii@postgresql.org>
Backpatch-through: v4.5
echo "pgbench suceeded. test1 ok."
r1=ok
fi
+# give pgpool chance to complete the failover
+sleep 5
./shutdownall
echo "=== test2: backend_weight2 = 0 and pgbench with -C option"