From d90c531188196cd4ea6683c7f4395151b42028a2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 11 Aug 2005 21:11:50 +0000 Subject: Autovacuum loose end mop-up. Provide autovacuum-specific vacuum cost delay and limit, both as global GUCs and as table-specific entries in pg_autovacuum. stats_reset_on_server_start is now OFF by default, but a reset is forced if we did WAL replay. XID-wrap vacuums do not ANALYZE, but do FREEZE if it's a template database. Alvaro Herrera --- doc/src/sgml/catalogs.sgml | 22 ++++++++++++++++++++-- doc/src/sgml/runtime.sgml | 38 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index d8ec4f9f658..f938a27bb91 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -1,6 +1,6 @@ @@ -1197,6 +1197,20 @@ Multiplier for reltuples to add to anl_base_thresh + + + vac_cost_delay + integer + + Custom vacuum_cost_delay parameter + + + + vac_cost_limit + integer + + Custom vacuum_cost_limit parameter + @@ -1217,7 +1231,11 @@ Any of the numerical fields can contain -1 (or indeed any negative value) to indicate that the system-wide default should - be used for this particular value. + be used for this particular value. Observe that the + vac_cost_delay variable inherits its default value from the + autovacuum_vacuum_cost_delay configuration parameter, + or from vacuum_cost_delay if the former is set to a negative + value. The same applies to vac_cost_limit. diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 87a97639632..060cd91ea16 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -3296,7 +3296,7 @@ SELECT * FROM parent WHERE key = 2400; If on, collected statistics are zeroed out whenever the server is restarted. If off, statistics are accumulated across server - restarts. The default is on. This option can only + restarts. The default is off. This option can only be set at server start. @@ -3424,6 +3424,40 @@ SELECT * FROM parent WHERE key = 2400; + + autovacuum_vacuum_cost_delay (integer) + + autovacuum_vacuum_cost_delay configuration parameter + + + + Specifies the cost delay value that will be used in automatic + VACUUM operations. If -1 is specified (which is the + default), the regular + value will be used. + This setting can be overridden for individual tables by entries in + pg_autovacuum. + + + + + + autovacuum_vacuum_cost_limit (integer) + + autovacuum_vacuum_cost_limit configuration parameter + + + + Specifies the cost limit value that will be used in automatic + VACUUM operations. If -1 is specified (which is the + default), the regular + value will be used. + This setting can be overridden for individual tables by entries in + pg_autovacuum. + + + + -- cgit v1.2.3