<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.24 2002/11/11 20:14:02 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.25 2003/03/18 00:02:11 momjian Exp $
-->
<chapter id="backup">
<title>Backup and Restore</title>
authentication settings.
</para>
+ <para>
+ Once restored, it is wise to run <command>ANALYZE</> on each
+ database so the optimizer has useful statistics. You
+ can also run <command>vacuumdb -a -z</> to <command>ANALYZE</> all
+ databases.
+ </para>
+
<para>
The ability of <application>pg_dump</> and <application>psql</> to
write to or read from pipes makes it possible to dump a database
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.56 2003/02/13 04:54:15 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.57 2003/03/18 00:02:11 momjian Exp $
PostgreSQL documentation
-->
</programlisting>
</para>
+ <para>
+ Once restored, it is wise to run <command>ANALYZE</> on each
+ restored object so the optimizer has useful statistics.
+ </para>
+
<para>
<application>pg_dump</application> has a few limitations:
other output formats is not limited, except possibly by the
operating system.
</para>
+
+ <para>
+ Once restored, it is wise to run <command>ANALYZE</> on each
+ restored object so the optimizer has useful statistics.
+ </para>
+
</refsect1>
<refsect1 id="pg-dump-examples">
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.36 2003/01/06 18:53:24 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.37 2003/03/18 00:02:11 momjian Exp $
PostgreSQL documentation
-->
<application>pg_dumpall</application> will need to connect several
times to the <productname>PostgreSQL</productname> server. If password
authentication is configured, it will ask for a password each time. In
- that case it would be convenient to set up a password file.
+ that case it would be convenient to set up a <filename>.pgpass</>
+ password file.
+ </para>
+
+ <para>
+ Once restored, it is wise to run <command>ANALYZE</> on each
+ database so the optimizer has useful statistics. You
+ can also run <command>vacuumdb -a -z</> to <command>ANALYZE</> all
+ databases.
</para>
- <comment>But where is that password file documented?</comment>
</refsect1>
-<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.35 2003/01/19 00:13:31 momjian Exp $ -->
+<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.36 2003/03/18 00:02:11 momjian Exp $ -->
<refentry id="APP-PGRESTORE">
<docinfo>
See also the <xref linkend="app-pgdump"> documentation for details on
limitations of <application>pg_dump</application>.
</para>
+
+ <para>
+ Once restored, it is wise to run <command>ANALYZE</> on each
+ restored object so the optimizer has useful statistics.
+ </para>
+
</refsect1>