Test: stabilize 032.dml_adaptive_loadbalance
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 14 Jan 2025 13:44:19 +0000 (22:44 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 14 Jan 2025 13:44:19 +0000 (22:44 +0900)
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

src/test/regression/tests/032.dml_adaptive_load_balance/test.sh

index b233f918d23b38fe5f63a9c093907fe4be62a9b6..5692249fc3b1d3be2db8ffa36cd4de54bf092040 100755 (executable)
@@ -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 <<EOF
 
 BEGIN;