Re: optimize file transfer in pg_upgrade
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Greg Sabino Mullane <htamfids@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, pgsql-hackers@postgresql.org
Date: 2025-03-06T02:34:37Z
Lists: pgsql-hackers
Attachments
- v4-0001-initdb-Add-no-sync-data-files.patch (text/plain)
On Wed, Mar 05, 2025 at 03:40:52PM -0500, Greg Sabino Mullane wrote: > I've seen various failures, but they always get caught quite early. > Certainly early enough to easily abort, fix perms/mounts/etc., then retry. > I think your instinct is correct that this reversion is more trouble than > its worth. I don't think the pg_upgrade docs mention taking a backup, but > that's always step 0 in my playbook, and that's the rollback plan in the > unlikely event of failure. Thank you, Greg and Robert, for sharing your thoughts. With that, here's what I'm considering to be a reasonably complete patch set for this feature. This leaves about a month for rigorous testing and editing, so I'm hopeful it'll be ready v18. -- nathan
Commits
-
initdb: Add --no-sync-data-files.
- cf131fa94285 18.0 landed
-
pg_dump: Add --sequence-data.
- 9c49f0e8cd7d 18.0 landed
-
pg_upgrade: Add --swap for faster file transfer.
- 626d7236b65d 18.0 landed
-
Add test for pg_upgrade file transfer modes.
- af0d4901c1c3 18.0 landed
-
Fix an intermetant BF failure in 003_logical_slots.
- 6f97ef05d62a 17.0 cited