]> granicus.if.org Git - postgresql/commitdiff
Reduce the default value of autovacuum_vacuum_cost_delay to 2ms.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Mar 2019 19:16:21 +0000 (15:16 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Mar 2019 19:16:21 +0000 (15:16 -0400)
This is a better way to implement the desired change of increasing
autovacuum's default resource consumption.

Discussion: https://postgr.es/m/28720.1552101086@sss.pgh.pa.us

doc/src/sgml/config.sgml
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample

index 00664cd83ee43994c0d41a818c00027476d54696..fe1735722a6f4b0b0fec99d658c96f4c99a36ef5 100644 (file)
@@ -7033,7 +7033,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
         Specifies the cost delay value that will be used in automatic
         <command>VACUUM</command> operations.  If -1 is specified, the regular
         <xref linkend="guc-vacuum-cost-delay"/> value will be used.
-        The default value is 20 milliseconds.
+        The default value is 2 milliseconds.
         This parameter can only be set in the <filename>postgresql.conf</filename>
         file or on the server command line;
         but the setting can be overridden for individual tables by
index c82804b1b95dceeabdfb4bc66f43e90b6ba568d8..fe6c6f8a05a51fc3db423d99663d3d35256b63d3 100644 (file)
@@ -3312,7 +3312,7 @@ static struct config_real ConfigureNamesReal[] =
                        GUC_UNIT_MS
                },
                &autovacuum_vac_cost_delay,
-               20, -1, 100,
+               2, -1, 100,
                NULL, NULL, NULL
        },
 
index 6f97a9ae281db8cedaae10cd4beab3d97adc4fae..cccb5f145a24fe0dbadda5de693debdfecb35c42 100644 (file)
 #autovacuum_multixact_freeze_max_age = 400000000       # maximum multixact age
                                        # before forced vacuum
                                        # (change requires restart)
-#autovacuum_vacuum_cost_delay = 20ms   # default vacuum cost delay for
+#autovacuum_vacuum_cost_delay = 2ms    # default vacuum cost delay for
                                        # autovacuum, in milliseconds;
                                        # -1 means use vacuum_cost_delay
 #autovacuum_vacuum_cost_limit = -1     # default vacuum cost limit for