Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
05f43650
Commit
05f43650
authored
Aug 07, 2009
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that autovacuum may run ANALYZE
parent
7798147a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
16 deletions
+27
-16
doc/src/sgml/backup.sgml
doc/src/sgml/backup.sgml
+5
-5
doc/src/sgml/indices.sgml
doc/src/sgml/indices.sgml
+4
-2
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+2
-2
doc/src/sgml/perform.sgml
doc/src/sgml/perform.sgml
+8
-3
doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_dump.sgml
+4
-2
doc/src/sgml/ref/pg_restore.sgml
doc/src/sgml/ref/pg_restore.sgml
+4
-2
No files found.
doc/src/sgml/backup.sgml
View file @
05f43650
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.1
29 2009/06/26 22:06:11 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.1
30 2009/08/07 20:54:31 alvherre
Exp $ -->
<chapter id="backup">
<title>Backup and Restore</title>
...
...
@@ -168,10 +168,10 @@ pg_dump -h <replaceable>host1</> <replaceable>dbname</> | psql -h <replaceable>h
<para>
After restoring a backup, it is wise to run <xref
linkend="sql-analyze" endterm="sql-analyze-title"> on each
database so the query optimizer has useful statistics
. An easy way
to do this is to run <command>vacuumdb -a -z</>; this is
equivalent to running <command>VACUUM ANALYZE</> on each database
manually.
For more advice on how to load large amounts of data
database so the query optimizer has useful statistics
;
see <xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
For more advice on how to load large amounts of data
into <productname>PostgreSQL</> efficiently, refer to <xref
linkend="populate">.
</para>
...
...
doc/src/sgml/indices.sgml
View file @
05f43650
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.7
8 2009/06/17 21:58:49 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.7
9 2009/08/07 20:54:31 alvherre
Exp $ -->
<chapter id="indexes">
<title id="indexes-title">Indexes</title>
...
...
@@ -1025,7 +1025,9 @@ SELECT am.amname AS index_method,
real statistics, some default values are assumed, which are
almost certain to be inaccurate. Examining an application's
index usage without having run <command>ANALYZE</command> is
therefore a lost cause.
therefore a lost cause.
See <xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
</para>
</listitem>
...
...
doc/src/sgml/maintenance.sgml
View file @
05f43650
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.9
5 2009/06/17 13:59:28 pete
re Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.9
6 2009/08/07 20:54:31 alvher
re Exp $ -->
<chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title>
...
...
@@ -253,7 +253,7 @@
</sect2>
<sect2 id="vacuum-for-statistics">
<title>Updating Planner Statistics</title>
<title
id="vacuum-for-statistics-title"
>Updating Planner Statistics</title>
<indexterm zone="vacuum-for-statistics">
<primary>statistics</primary>
...
...
doc/src/sgml/perform.sgml
View file @
05f43650
<!-- $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.7
1 2009/06/17 21:58:49 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.7
2 2009/08/07 20:54:31 alvherre
Exp $ -->
<chapter id="performance-tips">
<title>Performance Tips</title>
...
...
@@ -974,7 +974,10 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
table. With no statistics or obsolete statistics, the planner might
make poor decisions during query planning, leading to poor
performance on any tables with inaccurate or nonexistent
statistics.
statistics. Note that if the autovacuum daemon is enabled, it might
run <command>ANALYZE</command> automatically; see
<xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
</para>
</sect2>
...
...
@@ -1054,7 +1057,9 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
while loading the data, but don't bother increasing
<varname>maintenance_work_mem</varname>; rather, you'd do that while
manually recreating indexes and foreign keys afterwards.
And don't forget to <command>ANALYZE</> when you're done.
And don't forget to <command>ANALYZE</> when you're done; see
<xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
</para>
</sect2>
</sect1>
...
...
doc/src/sgml/ref/pg_dump.sgml
View file @
05f43650
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.11
3 2009/03/22 16:44:26 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.11
4 2009/08/07 20:54:31 alvherre
Exp $
PostgreSQL documentation
-->
...
...
@@ -834,7 +834,9 @@ CREATE DATABASE foo WITH TEMPLATE template0;
does not contain the statistics used by the optimizer to make
query planning decisions. Therefore, it is wise to run
<command>ANALYZE</command> after restoring from a dump file
to ensure good performance. The dump file also does not
to ensure good performance; see <xref linkend="vacuum-for-statistics">
and <xref linkend="autovacuum"> for more information.
The dump file also does not
contain any <command>ALTER DATABASE ... SET</> commands;
these settings are dumped by <xref linkend="app-pg-dumpall">,
along with database users and other installation-wide settings.
...
...
doc/src/sgml/ref/pg_restore.sgml
View file @
05f43650
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.8
1 2009/03/20 09:21:08 pete
re Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.8
2 2009/08/07 20:54:31 alvher
re Exp $ -->
<refentry id="APP-PGRESTORE">
<refmeta>
...
...
@@ -679,7 +679,9 @@ CREATE DATABASE foo WITH TEMPLATE template0;
<para>
Once restored, it is wise to run <command>ANALYZE</> on each
restored table so the optimizer has useful statistics.
restored table so the optimizer has useful statistics; see
<xref linkend="vacuum-for-statistics"> and
<xref linkend="autovacuum"> for more information.
</para>
</refsect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment