From 249d936bed069877923f0369bd2ce51a6f8f925e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 20 Mar 2009 09:21:09 +0000 Subject: Rename pg_restore -m to -j, and add documentation about what good numbers are. per discussion on hackers --- doc/src/sgml/ref/pg_restore.sgml | 64 +++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 23 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/pg_restore.sgml b/doc/src/sgml/ref/pg_restore.sgml index 4971836bab..053bcba87d 100644 --- a/doc/src/sgml/ref/pg_restore.sgml +++ b/doc/src/sgml/ref/pg_restore.sgml @@ -1,4 +1,4 @@ - + @@ -215,6 +215,46 @@ + + + + + + Run the most time-consuming parts + of pg_restore — those which load data, + create indexes, or create constraints — using multiple + concurrent jobs. This option can dramatically reduce the time + to restore a large database to a server running on a + multi-processor machine. + + + + Each job is one process or one thread, depending on the + operating system, and uses a separate connection to the + server. + + + + The optimal value for this option depends on the hardware + setup of the server, of the client, and of the network. + Factors include the number of CPU cores and the disk setup. A + good place to start is the number of CPU cores on the server, + but values larger than that can also lead to faster restore + times in many cases. Of course, values that are too high will + lead to decreasing performance because of thrashing. + + + + Only the custom archive format is supported with this option. + The input file must be a regular file (not, for example, a + pipe). This option is ignored when emitting a script rather + than connecting directly to a database server. Also, multiple + jobs cannot be used together with the + option . + + + + @@ -241,28 +281,6 @@ - - - - - - Run the most time-consuming parts of 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. - - - - This option is ignored when emitting a script rather than connecting - directly to a database server. Multiple threads cannot be used - together with . Also, the input - must be a plain file (not, for example, a pipe), and at present only - the custom archive format is supported. - - - - -- cgit v1.2.1