diff --git a/doc/src/sgml/ref/pg_restore.sgml b/doc/src/sgml/ref/pg_restore.sgml index cf028b93e5..e342327e74 100644 --- a/doc/src/sgml/ref/pg_restore.sgml +++ b/doc/src/sgml/ref/pg_restore.sgml @@ -1,4 +1,4 @@ - + @@ -42,8 +42,8 @@ pg_restore can operate in two modes: If a database name is specified, the archive is restored directly into - the database. Large objects can only be restored by using a direct - database connection. Otherwise, a script containing the SQL + the database. (Large objects can only be restored by using such a direct + database connection.) Otherwise, a script containing the SQL commands necessary to rebuild the database is created (and written to a file or standard output), similar to the ones created by the pg_dump plain text format. Some of the @@ -228,11 +228,13 @@ - Restore items in the original dump order. By default - pg_dump will dump items in an order - convenient to pg_dump, then save the - archive in a modified OID order. This option overrides the OID - ordering. + Restore items in the order they were originally generated within + pg_dump. This option has no known + practical use, since pg_dump generates + the items in an order convenient to it, which is unlikely to be a + safe order for restoring them. (This is not the order + in which the items are ultimately listed in the archive's table of + contents.) See also @@ -242,11 +244,10 @@ - Restore items in the OID order. By default - pg_dump will dump items in an order - convenient to pg_dump, then save the - archive in a modified OID order. This option enforces strict - OID ordering. + Restore items in order by OID. This option is of limited usefulness, + since OID is only an approximate indication of original creation + order. This option overrides @@ -281,13 +282,22 @@ - Restore items in modified OID order. By default - pg_dump will dump items in an order - convenient to pg_dump, then save the - archive in a modified OID order. Most objects will be restored - in OID order, but some things (e.g., rules and indexes) will - be restored at the end of the process irrespective of their - OIDs. This option is the default. + Rearrange items by object type (this occurs after the sorting + specified by or , if + given). The rearrangement is intended to give the best possible + restore performance. + + + + When none of , , and +