Change recently added test code for stability
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 13 Oct 2021 21:49:27 +0000 (18:49 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 13 Oct 2021 21:49:27 +0000 (18:49 -0300)
commit010e5233733aedf86634e1719d9536c42e18a27d
tree778187334dceb50188aa6ec4071319694c0241a5
parentd2bf06db377967b0d671ae372d513806e2a28052
Change recently added test code for stability

The test code added with ff9f111bce24 fails under valgrind, and probably
other slow cases too, because if (say) autovacuum runs in between and
produces WAL of its own, the large INSERT fails to account for that in
the LSN calculations.  Rewrite to use a DO loop.

Per complaint from Andres Freund

Backpatch to all branches.

Discussion: https://postgr.es/m/20211013180338.5guyqzpkcisqugrl@alap3.anarazel.de
src/test/recovery/t/026_overwrite_contrecord.pl