Try to reduce the chance of regression 006.memcache failure.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 11 Jul 2018 01:16:07 +0000 (10:16 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 11 Jul 2018 01:16:07 +0000 (10:16 +0900)
It seems the occasional failure of the test is caused by replication
lag.  The script tries to read tables from standby but it returns a
table not existing error.  So insert pg_sleep() after creation of
tables.

src/test/regression/tests/006.memqcache/test.sh

index 7f81e1f6721dc47154b80a059cdaa72a210312b2..02566d3382fca776c3947bdd83f28ea6afcd12c9 100755 (executable)
@@ -43,7 +43,7 @@ CREATE TABLE t1 (i int);
 CREATE TABLE black_t (i int);
 CREATE VIEW normal_v AS SELECT * FROM t1;
 CREATE VIEW white_v AS SELECT * FROM t1;
-
+SELECT pg_sleep(2);    -- Sleep for a while to make sure object creations are replicated
 SELECT * FROM t1;
 SELECT * FROM t1;
 SELECT * FROM black_t;