catalogs might be left in the wrong state.
</para>
+ <para>
+ When creating an archive (non-text) output file, it is advisable not to
+ restrict the set of database objects dumped, but instead plan to apply
+ any desired object filtering when reading the archive
+ with <application>pg_restore</application>. This will preserve
+ flexibility and possibly avoid problems at restore time; for details
+ see the <xref linkend="app-pgrestore"/> documentation.
+ In particular, dumping table data without the corresponding table
+ definition (via <option>--no-schema</option> and related options) is
+ not recommended.
+ </para>
+
<para>
When <option>--statistics</option> is specified,
<command>pg_dump</command> will include most optimizer statistics in the
</para>
</listitem>
+ <listitem>
+ <para>
+ Parallel restore (<option>--jobs</option> greater than 1) requires
+ applying dependency information from the archive file to ensure
+ that an object is not restored before other objects it depends on.
+ This information will be incomplete, leading to unexpected restore
+ failures, if the archive does not include object definitions
+ (the <option>pre-data</option> section). Therefore, avoid
+ using <application>pg_dump</application> options such
+ as <option>--no-schema</option>, <option>-a/--data-only</option>,
+ or <option>--section</option> without <option>pre-data</option> when
+ creating an archive you wish to restore in parallel. Instead, you
+ may provide such options to <application>pg_restore</application>.
+ </para>
+ </listitem>
+
<listitem>
<para><application>pg_restore</application> cannot restore large objects
selectively; for instance, only those for a specific table. If
</para>
</listitem>
- <listitem>
- <para>
- When restoring from a non-plain-text archive made using
- <application>pg_dumpall</application>, the <option>--section</option>
- option may be used, but must include <option>pre-data</option>.
- </para>
- </listitem>
-
<listitem>
<para>
The following options cannot be used when restoring from a non-plain-text
<option>--no-schema</option>,
<option>--statistics-only</option>, and
<option>--strict-names</option>.
+ Also, if the <option>--section</option> option is used, it must
+ include <option>pre-data</option>.
</para>
</listitem>