]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix timing issue in pg_rewind test.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 15 Nov 2020 15:09:31 +0000 (17:09 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 15 Nov 2020 15:09:31 +0000 (17:09 +0200)
commit39f9f04b57844143c7f510cc901501057103bfe4
tree41b6dc68b7b266843162c1e9a3c04d16715210a1
parentb7edb5d96e7c70fc4e522e4ca1f893e815fa5502
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
src/bin/pg_rewind/t/007_standby_source.pl