pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. 6+ messages / 1 participants [nested] [flat]
* pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. @ 2026-11-23 18:32 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Nathan Bossart @ 2026-11-23 18:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_restore: Fix incompatibilities with extracted tar dumps. Extracting a tar-format archive is supposed to produce a valid directory-format archive. Each BLOBS entry in the archive's table of contents (TOC) names a file that lists the large objects to restore, but the tar format puts the wrong file name into these entries. As a result, pg_restore fails to restore large objects from an extracted tar archive, and parallel restore can't estimate their size. To fix, construct the file name instead of using the one in the TOC entry, as commit 166b4f4560 did for directory-format archives made by versions before v12. This commit doesn't change the name recorded by the tar format, as that wouldn't help with existing archives. Reviewed-by: Sami Imseih <samimseih.pg@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/av9o1Fi3PQ-jqmGO%40nathan Backpatch-through: 15 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/732c475ff803de84136fc79860d535187d9f6986 Modified Files -------------- src/bin/pg_dump/pg_backup_directory.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. @ 2026-11-23 18:32 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Nathan Bossart @ 2026-11-23 18:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_restore: Fix incompatibilities with extracted tar dumps. Extracting a tar-format archive is supposed to produce a valid directory-format archive. Each BLOBS entry in the archive's table of contents (TOC) names a file that lists the large objects to restore, but the tar format puts the wrong file name into these entries. As a result, pg_restore fails to restore large objects from an extracted tar archive, and parallel restore can't estimate their size. To fix, construct the file name instead of using the one in the TOC entry, as commit 166b4f4560 did for directory-format archives made by versions before v12. This commit doesn't change the name recorded by the tar format, as that wouldn't help with existing archives. Reviewed-by: Sami Imseih <samimseih.pg@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/av9o1Fi3PQ-jqmGO%40nathan Backpatch-through: 15 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5331da1dc9b7534b9b1bfc4a6ca5cb6749fccaef Modified Files -------------- src/bin/pg_dump/pg_backup_directory.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. @ 2026-11-23 18:32 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Nathan Bossart @ 2026-11-23 18:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_restore: Fix incompatibilities with extracted tar dumps. Extracting a tar-format archive is supposed to produce a valid directory-format archive. Each BLOBS entry in the archive's table of contents (TOC) names a file that lists the large objects to restore, but the tar format puts the wrong file name into these entries. As a result, pg_restore fails to restore large objects from an extracted tar archive, and parallel restore can't estimate their size. To fix, construct the file name instead of using the one in the TOC entry, as commit 166b4f4560 did for directory-format archives made by versions before v12. This commit doesn't change the name recorded by the tar format, as that wouldn't help with existing archives. Reviewed-by: Sami Imseih <samimseih.pg@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/av9o1Fi3PQ-jqmGO%40nathan Backpatch-through: 15 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/24dfdcfdc20d13db4843560b178ea6752b247a1b Modified Files -------------- src/bin/pg_dump/pg_backup_directory.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. @ 2026-11-23 18:32 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Nathan Bossart @ 2026-11-23 18:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_restore: Fix incompatibilities with extracted tar dumps. Extracting a tar-format archive is supposed to produce a valid directory-format archive. Each BLOBS entry in the archive's table of contents (TOC) names a file that lists the large objects to restore, but the tar format puts the wrong file name into these entries. As a result, pg_restore fails to restore large objects from an extracted tar archive, and parallel restore can't estimate their size. To fix, construct the file name instead of using the one in the TOC entry, as commit 166b4f4560 did for directory-format archives made by versions before v12. This commit doesn't change the name recorded by the tar format, as that wouldn't help with existing archives. Reviewed-by: Sami Imseih <samimseih.pg@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/av9o1Fi3PQ-jqmGO%40nathan Backpatch-through: 15 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/398074af76885571c38243b383c20815564769fe Modified Files -------------- src/bin/pg_dump/pg_backup_directory.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. @ 2026-11-23 18:32 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Nathan Bossart @ 2026-11-23 18:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_restore: Fix incompatibilities with extracted tar dumps. Extracting a tar-format archive is supposed to produce a valid directory-format archive. Each BLOBS entry in the archive's table of contents (TOC) names a file that lists the large objects to restore, but the tar format puts the wrong file name into these entries. As a result, pg_restore fails to restore large objects from an extracted tar archive, and parallel restore can't estimate their size. To fix, construct the file name instead of using the one in the TOC entry, as commit 166b4f4560 did for directory-format archives made by versions before v12. This commit doesn't change the name recorded by the tar format, as that wouldn't help with existing archives. Reviewed-by: Sami Imseih <samimseih.pg@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/av9o1Fi3PQ-jqmGO%40nathan Backpatch-through: 15 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0b582da74448b7de325ad35c96aaebe04670012b Modified Files -------------- src/bin/pg_dump/pg_backup_directory.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. @ 2026-11-23 18:32 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Nathan Bossart @ 2026-11-23 18:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_restore: Fix incompatibilities with extracted tar dumps. Extracting a tar-format archive is supposed to produce a valid directory-format archive. Each BLOBS entry in the archive's table of contents (TOC) names a file that lists the large objects to restore, but the tar format puts the wrong file name into these entries. As a result, pg_restore fails to restore large objects from an extracted tar archive, and parallel restore can't estimate their size. To fix, construct the file name instead of using the one in the TOC entry, as commit 166b4f4560 did for directory-format archives made by versions before v12. This commit doesn't change the name recorded by the tar format, as that wouldn't help with existing archives. Reviewed-by: Sami Imseih <samimseih.pg@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/av9o1Fi3PQ-jqmGO%40nathan Backpatch-through: 15 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ffc0fbbd1d8a666ceadf8a801cc8d1d39ee086bc Modified Files -------------- src/bin/pg_dump/pg_backup_directory.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-11-23 18:32 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-23 18:32 pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. Nathan Bossart <nathan@postgresql.org> 2026-11-23 18:32 pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. Nathan Bossart <nathan@postgresql.org> 2026-11-23 18:32 pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. Nathan Bossart <nathan@postgresql.org> 2026-11-23 18:32 pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. Nathan Bossart <nathan@postgresql.org> 2026-11-23 18:32 pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. Nathan Bossart <nathan@postgresql.org> 2026-11-23 18:32 pgsql: pg_restore: Fix incompatibilities with extracted tar dumps. Nathan Bossart <nathan@postgresql.org>
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