mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Provide for parallel restoration from a custom format archive. Each data and
post-data step is run in a separate worker child (a thread on Windows, a child process elsewhere) up to the concurrent number specified by the new pg_restore command-line --multi-thread | -m switch. Andrew Dunstan, with some editing by Tom Lane.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.77 2009/01/05 16:54:36 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.78 2009/02/02 20:07:36 adunstan Exp $ -->
|
||||
|
||||
<refentry id="APP-PGRESTORE">
|
||||
<refmeta>
|
||||
@ -241,6 +241,28 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-m <replaceable class="parameter">number-of-threads</replaceable></option></term>
|
||||
<term><option>--multi-thread=<replaceable class="parameter">number-of-threads</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Run the most time-consuming parts of <application>pg_restore</>
|
||||
— those which load data, create indexes, or create
|
||||
constraints — using multiple concurrent connections to the
|
||||
database. This option can dramatically reduce the time to restore a
|
||||
large database to a server running on a multi-processor machine.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
This option is ignored when emitting a script rather than connecting
|
||||
directly to a database server. Multiple threads cannot be used
|
||||
together with <option>--single-transaction</option>. Also, the input
|
||||
must be a plain file (not, for example, a pipe), and at present only
|
||||
the custom archive format is supported.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-n <replaceable class="parameter">namespace</replaceable></option></term>
|
||||
<term><option>--schema=<replaceable class="parameter">schema</replaceable></option></term>
|
||||
|
Reference in New Issue
Block a user