From: Tatsuo Ishii Date: Tue, 14 Jan 2025 13:44:19 +0000 (+0900) Subject: Test: stabilize 032.dml_adaptive_loadbalance X-Git-Tag: V4_2_21~8 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=14d800465df0c7e7340c150a4a9cd9af1c59bc53;p=pgpool2.git Test: stabilize 032.dml_adaptive_loadbalance Occasionally the test failed due to: ERROR: relation "t2" does not exist LINE 1: SELECT i, 'QUERY ID T1-1' FROM t2; It seems the cause is that newly created table t2 takes sometime to get replicated to standby. So insert "sleep 1" after the table creation. Backpatch-through: v4.2 --- diff --git a/src/test/regression/tests/032.dml_adaptive_load_balance/test.sh b/src/test/regression/tests/032.dml_adaptive_load_balance/test.sh index b233f918d..5692249fc 100755 --- a/src/test/regression/tests/032.dml_adaptive_load_balance/test.sh +++ b/src/test/regression/tests/032.dml_adaptive_load_balance/test.sh @@ -39,7 +39,8 @@ CREATE TABLE t3(i INTEGER); CREATE TABLE tF(i INTEGER); CREATE FUNCTION f1(INTEGER) returns INTEGER AS 'SELECT \$1' LANGUAGE SQL; EOF - +# wait for the newly created tables replicated +sleep 1; $PSQL test <