1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Add pg_upgrade --jobs parameter

Add pg_upgrade --jobs, which allows parallel dump/restore of databases,
which improves performance.
This commit is contained in:
Bruce Momjian
2012-12-26 19:26:30 -05:00
parent 3f88b08003
commit 6f1b9e4efd
7 changed files with 277 additions and 19 deletions

View File

@ -112,6 +112,13 @@
variable <envar>PGDATANEW</></para></listitem>
</varlistentry>
<varlistentry>
<term><option>-j</option></term>
<term><option>--jobs</option></term>
<listitem><para>number of simultaneous processes or threads to use
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-k</option></term>
<term><option>--link</option></term>
@ -331,10 +338,15 @@ NET STOP pgsql-8.3 (<productname>PostgreSQL</> 8.3 and older used a different s
requires that the old and new cluster data directories be in the
same file system. See <literal>pg_upgrade --help</> for a full
list of options.
</para>
</para>
<para>
</para>
<para>
The <option>--jobs</> option allows multiple CPU cores to be used
to dump and reload database schemas in parallel; a good place to
start is the number of CPU cores on the server. This option can
dramatically reduce the time to upgrade a multi-database server
running on a multiprocessor machine.
</para>
<para>
For Windows users, you must be logged into an administrative account, and