pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Stabilize xid_wraparound tests
Date: Tue, 30 Jul 2024 10:27:49 +0000
Message-ID: <E1sYk57-001sP0-2A@gemulon.postgresql.org> (raw)

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.

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/787ea8c9d812e5ae76b7a8981e5f93cee80c8a36

Modified Files
--------------
.../xid_wraparound/t/001_emergency_vacuum.pl       | 28 ++++++++++------------
src/test/modules/xid_wraparound/t/002_limits.pl    |  6 ++---
.../modules/xid_wraparound/t/003_wraparounds.pl    |  6 ++---
3 files changed, 19 insertions(+), 21 deletions(-)



view thread (2+ messages)

Message-ID: <E1sYk57-001sP0-2A@gemulon.postgresql.org>
Permalink:  ../E1sYk57-001sP0-2A@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sYk57-001sP0-2A@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Stabilize xid_wraparound tests
  In-Reply-To: <E1sYk57-001sP0-2A@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox