Re: pg_upgrade: transfer pg_largeobject_metadata's files when possible
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>, Tom Lane <tgl@sss.pgh.pa.us>, Nitin Motiani <nitinmotiani@google.com>, Hannu Krosing <hannuk@google.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-04T20:08:47Z
Lists: pgsql-hackers
Attachments
On Wed, Feb 04, 2026 at 10:06:29AM -0600, Nathan Bossart wrote: > IIUC your critique is that this doesn't explain the overwriting behavior > like the older comment does. I'll work on adding that. > > [...] > > I'm considering a couple of options here, but it seems like the easiest > thing to do is to move the TRUNCATE commands to the end of the dump file. > At least, that seems to be sufficient for our existing tests. If that > seems okay to you, I can work on putting together a patch. Here is a rough first draft of a patch that does this. -- nathan
Commits
-
pg_upgrade: Use COPY for LO metadata for upgrades from < v12.
- b33f75361284 19 (unreleased) landed
-
pg_upgrade: Fix handling of pg_largeobject_metadata.
- 158408fef8b9 19 (unreleased) landed
-
pg_upgrade: Transfer pg_largeobject_metadata's files when possible.
- 3bcfcd815e1a 19 (unreleased) landed
-
Rearrange pg_dump's handling of large objects for better efficiency.
- a45c78e3284b 17.0 cited
-
Expand AclMode to 64 bits
- 7b378237aa80 16.0 cited
-
Fix pg_upgrade for oid removal.
- 12a53c732ced 12.0 cited