Change recently added test code for stability
authorAlvaro Herrera <[email protected]>
Wed, 13 Oct 2021 21:49:27 +0000 (18:49 -0300)
committerAlvaro Herrera <[email protected]>
Wed, 13 Oct 2021 21:49:27 +0000 (18:49 -0300)
commit5ec87619bc5d987954475444713672ca733b944a
tree2fe4267efc6ae0377a96df7fc132da728e955527
parent7b8237bbecf7aaa537fcccf8a719aab637fd93dc
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[email protected]
src/test/recovery/t/026_overwrite_contrecord.pl