Re: add --transfer-mode to pg_upgrade

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, gaoxueyu_hope(at)163(dot)com, daniel(at)yesql(dot)se, pgsql-hackers(at)postgresql(dot)org
Subject: Re: add --transfer-mode to pg_upgrade
Date: 2026-12-04 15:54:07
Message-ID: axLiH5eoZzmUjTAA@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thanks for taking a look. Here is a v2.

On Fri, Dec 04, 2026 at 08:34:09AM +0800, Xueyu Gao wrote:
> The help output loses the indication that copy is the default.

Good catch. Fixed.

On Fri, Dec 04, 2026 at 09:12:52AM +0100, Jakub Wartak wrote:
> +1 too. We could also just fprintf(stderr) some info that the --link/--clone
> are deprecated too and users should switch to --transfer-mode=XXX in future.

I don't think we want to do that. AFAICT none of our other deprecated
options (e.g., pg_dump's --blobs) emit a warning, and since I doubt we'll
ever remove these, it'd just be noise for folks with existing scripts.

> I would like it to have it the same way.

0002 gives pg_combinebackup the same treatment.

--
nathan

Attachment Content-Type Size
v2-0001-pg_upgrade-Add-transfer-mode.patch text/plain 16.0 KB
v2-0002-pg_combinebackup-Add-transfer-mode.patch text/plain 13.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rajesh Kumar Thandapani 2026-12-04 15:55:05 Re: Add aborted_txns and aborted_bytes to pg_stat_replication_slots
Previous Message Hüseyin Demir 2026-12-04 15:14:17 Re: [PATCH] Report changes discarded for relations not in the subscription