Make VACUUM VERBOSE FSM output all output in a single INFO output

statement.
This commit is contained in:
Bruce Momjian 2005-04-23 20:56:01 +00:00
parent e8ad6d9666
commit 52e08c35f7

View File

@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.40 2005/04/23 15:20:39 momjian Exp $
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.41 2005/04/23 20:56:01 momjian Exp $
*
*
* NOTES:
@ -709,20 +709,14 @@ PrintFreeSpaceMapStatistics(int elevel)
needed = (sumRequests + numRels) * CHUNKPAGES;
ereport(elevel,
(errmsg("free space map contains information about:")));
ereport(elevel,
(errmsg("%d relations, limit %d relations",
numRels, MaxFSMRelations)));
ereport(elevel,
(errmsg("%d pages with free space, %.0f pages (with overhead)",
storedPages, Min(needed, MaxFSMPages))));
ereport(elevel,
(errmsg("%.0f pages required to track all freespace, limit %d pages (%.0f kB)",
(errmsg("free space map contains information about:\n"
"%d relations, limit %d relations\n"
"%d pages with free space, %.0f pages (with overhead)\n"
"%.0f pages required to track all freespace, limit %d pages (%.0f kB)",
numRels, MaxFSMRelations,
storedPages, Min(needed, MaxFSMPages),
needed, MaxFSMPages,
(double) FreeSpaceShmemSize() / 1024.0)));
(double) FreeSpaceShmemSize() / 1024.0)));
CheckFreeSpaceMapStatistics(NOTICE, numRels, needed);
/* Print to server logs too because is deals with a config variable. */