Warn when parallel restoring a custom dump without data offsets - Mailing list pgsql-hackers

From David Gilman
Subject Warn when parallel restoring a custom dump without data offsets
Date
Msg-id CALBH9DDuJ+scZc4MEvw5uO-=vRyR2=QF9+Yh=3hPEnKHWfS81A@mail.gmail.com
Whole thread Raw
Responses Re: Warn when parallel restoring a custom dump without data offsets
List pgsql-hackers
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(+)

Attachment

pgsql-hackers by date:

Previous
From: Euler Taveira
Date:
Subject: Re: [PATCH] Fix pg_dump --no-tablespaces for the custom format
Next
From: Erik Rijkers
Date:
Subject: Re: Add A Glossary