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)
commit2cdf97fd1ec86301c70ccffb2414a6047c9f8dd1
tree19924a34b11dc3c8f4eba83d3801406541249c32
parentcdab0a80d28501692584e798abbbfcfe9b5a6b48
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