index 4ac617615c2502f0c26c9d944687a75306141bea..afbb6c35e3000d0e00babc4f0c7e7cc17c3ac9d0 100644 (file)
<para>
Causes each action executed by autovacuum to be logged if it ran for at
least the specified amount of time. Setting this to zero logs
- all autovacuum actions. <literal>-1</literal> (the default) disables
- logging autovacuum actions.
- If this value is specified without units, it is taken as milliseconds.
+ all autovacuum actions. <literal>-1</literal> disables logging autovacuum
+ actions. If this value is specified without units, it is taken as milliseconds.
For example, if you set this to
<literal>250ms</literal> then all automatic vacuums and analyzes that run
250ms or longer will be logged. In addition, when this parameter is
set to any value other than <literal>-1</literal>, a message will be
logged if an autovacuum action is skipped due to a conflicting lock or a
- concurrently dropped relation. Enabling this parameter can be helpful
- in tracking autovacuum activity. 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
- changing table storage parameters.
+ concurrently dropped relation. The default is <literal>10min</literal>.
+ Enabling this parameter can be helpful in tracking autovacuum activity.
+ 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 changing table storage parameters.
</para>
</listitem>
</varlistentry>
Some statistics are included in the log messages, including the number
of buffers written and the time spent writing them.
This parameter can only be set in the <filename>postgresql.conf</filename>
- file or on the server command line. The default is off.
+ file or on the server command line. The default is on.
</para>
</listitem>
</varlistentry>
index d894af310a023ee026c629d05c8758daa914ba74..69cd5e9d426b6e833705ae29c12f29672aa3d78e 100644 (file)
@@-107,7+107,7 @@ char *wal_consistency_checking_string = NULL; bool *wal_consistency_checking = NULL;
bool wal_init_zero = true;
bool wal_recycle = true;
-bool log_checkpoints = false;
+bool log_checkpoints = true;
int sync_method = DEFAULT_SYNC_METHOD;
int wal_level = WAL_LEVEL_MINIMAL;
int CommitDelay = 0; /* precommit delay in microseconds */
index a9223e7b10871e1e15c7126fcf692cb110e99af3..f6d0562876440fafd88d19eaa4fbcb62c687b73c 100644 (file)
double autovacuum_vac_cost_delay;
int autovacuum_vac_cost_limit;
-int Log_autovacuum_min_duration = -1;
+int Log_autovacuum_min_duration = 600000;
/* how long to keep pgstat data in the launcher, in milliseconds */
#define STATS_READ_DELAY 1000
index 1cbc9feeb6f44ce635d7479e5255eae4cf67cde5..a1acd46b6118de189bb4943b144bb93cdbcab713 100644 (file)
#debug_print_rewritten = off
#debug_print_plan = off
#debug_pretty_print = on
-#log_autovacuum_min_duration = -1 # log autovacuum activity;
+#log_autovacuum_min_duration = 10min # log autovacuum activity;
# -1 disables, 0 logs all actions and
# their durations, > 0 logs only
# actions running at least this number
# of milliseconds.
-#log_checkpoints = off
+#log_checkpoints = on
#log_connections = off
#log_disconnections = off
#log_duration = off
index 403adb0ee7850d98b097c4ad8fc247cc0fea5386..03b80f95757d8a8ac2e99ed58a66562d5e25f7a0 100644 (file)
* but here it is more convenient to pass it as an environment variable
* (no quoting to worry about).
*/
-static const char *boot_options = "-F";
-static const char *backend_options = "--single -F -O -j -c search_path=pg_catalog -c exit_on_error=true";
+static const char *boot_options = "-F -c log_checkpoints=false";
+static const char *backend_options = "--single -F -O -j -c search_path=pg_catalog -c exit_on_error=true -c log_checkpoints=false";
/* Additional switches to pass to backend (either boot or standalone) */
static char *extra_options = "";