Stabilize 039_end_of_wal test.
authorThomas Munro <tmunro@postgresql.org>
Sat, 31 Aug 2024 02:32:08 +0000 (14:32 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sat, 31 Aug 2024 02:55:40 +0000 (14:55 +1200)
commitd1d0fe1feb23e76daa6c3e0ea995b927dcf4cfe3
tree43ad28719d49d1a8b07fcc402d672026ec027c78
parent187d8bb1a3156f055fe1d362f4a0162d64aacd1d
Stabilize 039_end_of_wal test.

The first test was sensitive to the insert LSN after setting up the
catalogs, which depended on environmental things like the locales on the
OS and usernames.  Switch to a new WAL file before the first test, as a
simple way to put every computer into the same state.

Back-patch to all supported releases.

Reported-by: Anton Voloshin <a.voloshin@postgrespro.ru>
Reported-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://postgr.es/m/b26aeac2-cb6d-4633-a7ea-945baae83dcf%40postgrespro.ru
src/test/recovery/t/039_end_of_wal.pl