From 13e26073bda7e5fb91c8724670357f2e0541a17d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 14 Sep 2007 13:43:03 +0000 Subject: [PATCH] Update documentation to mention that autovacuum also does analyze so we don't need to recommend nightly analyzes anymore unless autovacuum is off. --- doc/src/sgml/maintenance.sgml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index 5eacf5fcfd..40eecdc376 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -1,4 +1,4 @@ - + Routine Database Maintenance Tasks @@ -262,12 +262,19 @@ - Recommended practice for most sites is to schedule a database-wide - ANALYZE once a day at a low-usage time of day; this can - usefully be combined with a nightly VACUUM. However, - sites with relatively slowly changing table statistics might find that - this is overkill, and that less-frequent ANALYZE runs - are sufficient. + Fortunately, autovacuum () monitors table + activity and performs ANALYZEs when necessary. This + eliminates the need for administrators to manually schedule + ANALYZE. + + + + For those not using autovacuum, one approach is to schedule a + database-wide ANALYZE once a day at a low-usage time of + day; this can usefully be combined with a nightly VACUUM. + However, sites with relatively slowly changing table statistics might + find that this is overkill, and that less-frequent ANALYZE + runs are sufficient.