diff options
Diffstat (limited to 'src/backend/commands/vacuum.c')
-rw-r--r-- | src/backend/commands/vacuum.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index 62609ad1af1..8fa7afd1295 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.13 1997/01/10 09:57:16 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.14 1997/01/13 03:43:59 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -46,12 +46,7 @@ #endif /* NEED_RUSAGE */ bool VacuumRunning = false; - -#ifdef VACUUM_QUIET -static int MESSLEV = DEBUG; -#else -static int MESSLEV = NOTICE; -#endif +static int MESSLEV; /* message level */ typedef struct { FuncIndexInfo finfo; @@ -90,10 +85,15 @@ static bool _vc_enough_space (VPageDescr vpd, Size len); void -vacuum(char *vacrel) +vacuum(char *vacrel, bool verbose) { NameData VacRel; + if (verbose) + MESSLEV = NOTICE; + else + MESSLEV = DEBUG; + /* vacrel gets de-allocated on transaction commit */ /* initialize vacuum cleaner */ |