From ef23a77441b94d1e2fde3f359d2e49703c70c9ca Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 18 Apr 2007 16:44:18 +0000 Subject: Enable configurable log of autovacuum actions. Initial patch from Simon Riggs, additional code and docs by me. Per discussion. --- src/backend/utils/misc/guc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/backend/utils/misc/guc.c') 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 . * * 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 $ * *-------------------------------------------------------------------- */ @@ -1505,6 +1505,17 @@ static struct config_int ConfigureNamesInt[] = -1, -1, INT_MAX / 1000, NULL, NULL }, + { + {"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."), -- cgit v1.2.3