From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add option -N/--no-sync to pg_upgrade
Date: Sat, 18 Dec 2021 07:29:11 +0000
Message-ID: <E1myU9X-0001tX-R2@gemulon.postgresql.org> (raw)
Add option -N/--no-sync to pg_upgrade
This is an option consistent with what the other tools of src/bin/
(pg_checksums, pg_dump, pg_rewind and pg_basebackup) provide which is
useful for leveraging the I/O effort when testing things. This is not
to be used in a production environment.
All the regression tests of pg_upgrade are updated to use this new
option. This happens to cut at most a couple of seconds in environments
constrained on I/O, by avoiding a flush of data folder for the new
cluster upgraded.
Author: Michael Paquier
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/YbrhzuBmBxS/DkfX@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3d5ffccb6df323f528cf870c26d0d0517ffe3eaa
Modified Files
--------------
doc/src/sgml/ref/pgupgrade.sgml | 16 ++++++++++++++++
src/bin/pg_upgrade/option.c | 9 ++++++++-
src/bin/pg_upgrade/pg_upgrade.c | 13 ++++++++-----
src/bin/pg_upgrade/pg_upgrade.h | 1 +
src/bin/pg_upgrade/test.sh | 2 +-
src/tools/msvc/vcregress.pl | 4 +++-
6 files changed, 37 insertions(+), 8 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add option -N/--no-sync to pg_upgrade
In-Reply-To: <E1myU9X-0001tX-R2@gemulon.postgresql.org>
References: <E1myU9X-0001tX-R2@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