diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-04-18 16:44:18 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-04-18 16:44:18 +0000 |
commit | ef23a77441b94d1e2fde3f359d2e49703c70c9ca (patch) | |
tree | e603a32544b9c491293a2e3eab25b02fef4fc895 /src/backend/utils/misc/guc.c | |
parent | 432ea3cffdfc49eeaf11f9ef31970c69ec38cd63 (diff) | |
download | postgresql-ef23a77441b94d1e2fde3f359d2e49703c70c9ca.tar.gz postgresql-ef23a77441b94d1e2fde3f359d2e49703c70c9ca.zip |
Enable configurable log of autovacuum actions. Initial patch from Simon
Riggs, additional code and docs by me. Per discussion.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 83ea00c568a..b9643a734d3 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut <peter_e@gmx.net>. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.385 2007/04/16 18:29:55 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.386 2007/04/18 16:44:18 alvherre Exp $ * *-------------------------------------------------------------------- */ @@ -1506,6 +1506,17 @@ static struct config_int ConfigureNamesInt[] = }, { + {"log_autovacuum", PGC_BACKEND, LOGGING_WHAT, + gettext_noop("Sets the minimum execution time above which autovacuum actions " + "will be logged."), + gettext_noop("Zero prints all actions. The default is -1 (turning this feature off)."), + GUC_UNIT_MS + }, + &Log_autovacuum, + -1, -1, INT_MAX / 1000, NULL, NULL + }, + + { {"bgwriter_delay", PGC_SIGHUP, RESOURCES, gettext_noop("Background writer sleep time between rounds."), NULL, |