pgsql: Fix timing issue in pg_rewind test.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix timing issue in pg_rewind test.
Date: 2020-11-15 15:10:33
Message-ID: E1keJfl-00049X-GP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix timing issue in pg_rewind test.

The test inserts a row in primary server, waits until the insertion has
been replicated to a cascaded standby, and checks that it's visible there
by querying the cascaded standby. In order for that to work reliably, the
test needs to wait until the insertion WAL record has been fully replayed.

This should fix the occasional buildfarm failures. Diagnosis by Tom Lane.

Discussion: https://www.postgresql.org/message-id/606796.1605424022@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/39f9f04b57844143c7f510cc901501057103bfe4

Modified Files
--------------
src/bin/pg_rewind/t/007_standby_source.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-11-15 17:39:55 pgsql: Suppress "warning: variable 'collcollate' set but not used".
Previous Message Alexander Korotkov 2020-11-15 11:03:17 pgsql: Add missing 'the' to pgtrgm.sgml