Stabilize xid_wraparound tests

Andrew Dunstan <andrew@dunslane.net>

Commit: 800cd3e923597172a29aba49da45753f52996ee8
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2024-07-30T10:24:59Z
Releases: 18.0
Stabilize xid_wraparound tests

The tests had a race condition if autovacuum was set to off. Instead we
create all the tables we are interested in with autovacuum disabled, so
they are only ever touched when in danger of wraparound.

Discussion: https://postgr.es/m/3e2cbd24-f45e-4b2b-ba83-8149214f0a4d@dunslane.net

Masahiko Sawada (slightly tweaked by me)

Backpatch to release 17 where these tests were introduced.

Files