]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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)
commit6287b8e195f37b09dacf9de89cf5c8ee925a3716
tree219aa243e4c04f0351b35116afb32da600e3ccbc
parentc5b2d9c2a4d893a1a4488e9263bf70a444ba5847
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