Change recently added test code for stability

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 79c7fe1af82d42211baf37e8dc865288b251cc6d
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-10-13T21:49:27Z
Releases: 14.1
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

Files

PathChange+/−
src/test/recovery/t/026_overwrite_contrecord.pl modified +22 −17

Discussion