pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_restore: fix incompatibility with old directory-format dumps.
Date: Sun, 08 Jun 2025 21:06:59 +0000
Message-ID: <E1uONEJ-000m2L-1M@gemulon.postgresql.org> (raw)

pg_restore: fix incompatibility with old directory-format dumps.

pg_restore failed to restore large objects (blobs) out of
directory-format dumps made by versions before PG v12.
That's because, due to a bug fixed in commit 548e50976, those
old versions put the wrong filename into the BLOBS TOC entry.
Said bug was harmless before v17, because we ignored the
incorrect filename field --- but commit a45c78e32 assumed it
would be correct.

Reported-by: Pavel Stehule <pavel.stehule@gmail.com>
Author: Pavel Stehule <pavel.stehule@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAFj8pRCrZ=_e1Rv1N+6vDaH+6gf=9A2mE2J4RvnvKA1bLiXvXA@mail.gmail.com
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/166b4f4560d68e2bcf0f82eb898ac5ee15147b82

Modified Files
--------------
src/bin/pg_dump/pg_backup_directory.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)



view thread (2+ messages)

Message-ID: <E1uONEJ-000m2L-1M@gemulon.postgresql.org>
Permalink:  ../E1uONEJ-000m2L-1M@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uONEJ-000m2L-1M@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_restore: fix incompatibility with old directory-format dumps.
  In-Reply-To: <E1uONEJ-000m2L-1M@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