Warn when parallel restoring a custom dump without data offsets
David Gilman <davidgilman1@gmail.com>
From: David Gilman <davidgilman1@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-05-16T20:57:46Z
Lists: pgsql-hackers
Attachments
- 0001-Warn-when-parallel-restoring-a-custom-dump-without-d.patch (application/octet-stream) patch 0001
If pg_dump can't seek on its output stream when writing a dump in the custom archive format (possibly because you piped its stdout to a file) it can't update that file with data offsets. These files will often break parallel restoration. Warn when the user is doing pg_restore on such a file to give them a hint as to why their restore is about to fail. The documentation for pg_restore -j is also updated to suggest that you dump custom archive formats with the -f option. --- doc/src/sgml/ref/pg_restore.sgml | 9 +++++++++ src/bin/pg_dump/pg_backup_custom.c | 8 ++++++++ 2 files changed, 17 insertions(+)
Commits
-
Cope with data-offset-less archive files during out-of-order restores.
- 71e8e66f783c 13.0 landed
- f009591d6edd 14.0 landed
- 66232220ee6e 12.4 landed
-
Remove manual tracking of file position in pg_dump/pg_backup_custom.c.
- 447cf2f8e9dc 13.0 landed
- a8d0732ac2b5 14.0 landed
- 39a068ce6675 12.4 landed
-
Improve performance of tuple conversion map generation
- 42f70cd9c3db 12.0 cited
-
Fix pg_restore so parallel restore doesn't fail when the input file doesn't
- b779ea8a9a2d 9.0.0 cited