1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Added VERBOSE option to vacuum command.

This commit is contained in:
Bruce Momjian
1997-01-13 03:45:33 +00:00
parent febfe447a7
commit 0d3bf78e0b
7 changed files with 38 additions and 25 deletions

View File

@@ -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 */