From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add tests for XID wraparound.
Date: Thu, 30 Nov 2023 05:30:15 +0000
Message-ID: <E1r8Zct-007uvu-3g@gemulon.postgresql.org> (raw)
Add tests for XID wraparound.
The test module includes helper functions to quickly burn through lots
of XIDs. They are used in the tests, and are also handy for manually
testing XID wraparound.
Since these tests are very expensive the entire suite is disabled by
default. It requires to set PG_TEST_EXTRA to run it.
Reviewed-by: Daniel Gustafsson, John Naylor, Michael Paquier
Reviewed-by: vignesh C
Author: Heikki Linnakangas, Masahiko Sawada, Andres Freund
Discussion: https://www.postgresql.org/message-id/CAD21AoDVhkXp8HjpFO-gp3TgL6tCKcZQNxn04m01VAtcSi-5sA%40mail.gma...
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e255b646a16b45823c338dadf787813fc9e191dc
Modified Files
--------------
doc/src/sgml/regress.sgml | 10 +
src/test/modules/Makefile | 3 +-
src/test/modules/meson.build | 1 +
src/test/modules/xid_wraparound/.gitignore | 4 +
src/test/modules/xid_wraparound/Makefile | 23 +++
src/test/modules/xid_wraparound/README | 3 +
src/test/modules/xid_wraparound/meson.build | 36 ++++
.../xid_wraparound/t/001_emergency_vacuum.pl | 132 +++++++++++++
src/test/modules/xid_wraparound/t/002_limits.pl | 138 +++++++++++++
.../modules/xid_wraparound/t/003_wraparounds.pl | 60 ++++++
.../modules/xid_wraparound/xid_wraparound--1.0.sql | 12 ++
src/test/modules/xid_wraparound/xid_wraparound.c | 219 +++++++++++++++++++++
.../modules/xid_wraparound/xid_wraparound.control | 4 +
13 files changed, 644 insertions(+), 1 deletion(-)
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: msawada@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add tests for XID wraparound.
In-Reply-To: <E1r8Zct-007uvu-3g@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