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)
commit79c7fe1af82d42211baf37e8dc865288b251cc6d
tree038fd800863dd00129bac51efcf609d5876ea7dc
parentdd58194cf563c9d69821162861506d5d9acceddd
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