From 0d09688f880d245ffb9a4618ee4468b9f4fbc3e6 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 21 Jul 2008 15:27:02 +0000 Subject: [PATCH] Publish more openly the fact that autovacuum is working for wraparound protection. Simon Riggs --- src/backend/postmaster/autovacuum.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index f3405f4352..fdb501eb89 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -55,7 +55,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.81 2008/07/17 21:02:31 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.82 2008/07/21 15:27:02 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -2657,8 +2657,9 @@ autovac_report_activity(autovac_table *tab) /* Report the command and possible options */ if (tab->at_dovacuum) snprintf(activity, MAX_AUTOVAC_ACTIV_LEN, - "autovacuum: VACUUM%s", - tab->at_doanalyze ? " ANALYZE" : ""); + "autovacuum: VACUUM%s%s", + tab->at_doanalyze ? " ANALYZE" : "", + tab->at_wraparound ? " (to prevent wraparound)" : ""); else snprintf(activity, MAX_AUTOVAC_ACTIV_LEN, "autovacuum: ANALYZE"); -- 2.40.0