From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_upgrade: Allow use of file cloning
Date: Wed, 07 Nov 2018 17:38:00 +0000
Message-ID: <E1gKRmC-00016e-Hc@gemulon.postgresql.org> (raw)
pg_upgrade: Allow use of file cloning
Add another transfer mode --clone to pg_upgrade (besides the existing
--link and the default copy), using special file cloning calls. This
makes the file transfer faster and more space efficient, achieving
speed similar to --link mode without the associated drawbacks.
On Linux, file cloning is supported on Btrfs and XFS (if formatted with
reflink support). On macOS, file cloning is supported on APFS.
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3a769d8239afdc003c91a56d2d8d5adfadacda5d
Modified Files
--------------
configure | 2 +-
configure.in | 1 +
doc/src/sgml/ref/pgupgrade.sgml | 40 +++++++++++++++---
src/bin/pg_upgrade/check.c | 13 +++++-
src/bin/pg_upgrade/file.c | 90 ++++++++++++++++++++++++++++++++++++++++
src/bin/pg_upgrade/option.c | 7 ++++
src/bin/pg_upgrade/pg_upgrade.h | 6 ++-
src/bin/pg_upgrade/relfilenode.c | 44 +++++++++++++-------
src/include/pg_config.h.in | 3 ++
9 files changed, 181 insertions(+), 25 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: peter_e@gmx.net
Subject: Re: pgsql: pg_upgrade: Allow use of file cloning
In-Reply-To: <E1gKRmC-00016e-Hc@gemulon.postgresql.org>
References: <E1gKRmC-00016e-Hc@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