Skip to content

Commit 29c18bc

Browse files
committed
Add mention of ANALYZE after object restore.
1 parent ccfa6f1 commit 29c18bc

File tree

4 files changed

+37
-6
lines changed

4 files changed

+37
-6
lines changed

doc/src/sgml/backup.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.24 2002/11/11 20:14:02 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.25 2003/03/18 00:02:11 momjian Exp $
33
-->
44
<chapter id="backup">
55
<title>Backup and Restore</title>
@@ -125,6 +125,13 @@ psql <replaceable class="parameter">dbname</replaceable> &lt; <replaceable class
125125
authentication settings.
126126
</para>
127127

128+
<para>
129+
Once restored, it is wise to run <command>ANALYZE</> on each
130+
database so the optimizer has useful statistics. You
131+
can also run <command>vacuumdb -a -z</> to <command>ANALYZE</> all
132+
databases.
133+
</para>
134+
128135
<para>
129136
The ability of <application>pg_dump</> and <application>psql</> to
130137
write to or read from pipes makes it possible to dump a database

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.56 2003/02/13 04:54:15 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.57 2003/03/18 00:02:11 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -650,6 +650,11 @@ CREATE DATABASE foo WITH TEMPLATE template0;
650650
</programlisting>
651651
</para>
652652

653+
<para>
654+
Once restored, it is wise to run <command>ANALYZE</> on each
655+
restored object so the optimizer has useful statistics.
656+
</para>
657+
653658
<para>
654659
<application>pg_dump</application> has a few limitations:
655660

@@ -682,6 +687,12 @@ CREATE DATABASE foo WITH TEMPLATE template0;
682687
other output formats is not limited, except possibly by the
683688
operating system.
684689
</para>
690+
691+
<para>
692+
Once restored, it is wise to run <command>ANALYZE</> on each
693+
restored object so the optimizer has useful statistics.
694+
</para>
695+
685696
</refsect1>
686697

687698
<refsect1 id="pg-dump-examples">

doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.36 2003/01/06 18:53:24 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.37 2003/03/18 00:02:11 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -258,10 +258,17 @@ PostgreSQL documentation
258258
<application>pg_dumpall</application> will need to connect several
259259
times to the <productname>PostgreSQL</productname> server. If password
260260
authentication is configured, it will ask for a password each time. In
261-
that case it would be convenient to set up a password file.
261+
that case it would be convenient to set up a <filename>.pgpass</>
262+
password file.
263+
</para>
264+
265+
<para>
266+
Once restored, it is wise to run <command>ANALYZE</> on each
267+
database so the optimizer has useful statistics. You
268+
can also run <command>vacuumdb -a -z</> to <command>ANALYZE</> all
269+
databases.
262270
</para>
263271

264-
<comment>But where is that password file documented?</comment>
265272
</refsect1>
266273

267274

doc/src/sgml/ref/pg_restore.sgml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.35 2003/01/19 00:13:31 momjian Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.36 2003/03/18 00:02:11 momjian Exp $ -->
22

33
<refentry id="APP-PGRESTORE">
44
<docinfo>
@@ -589,6 +589,12 @@ CREATE DATABASE foo WITH TEMPLATE = template0;
589589
See also the <xref linkend="app-pgdump"> documentation for details on
590590
limitations of <application>pg_dump</application>.
591591
</para>
592+
593+
<para>
594+
Once restored, it is wise to run <command>ANALYZE</> on each
595+
restored object so the optimizer has useful statistics.
596+
</para>
597+
592598
</refsect1>
593599

594600

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy