Commit 52e08c35 authored by Bruce Momjian's avatar Bruce Momjian

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

statement.
parent e8ad6d96
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * 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: * NOTES:
...@@ -709,20 +709,14 @@ PrintFreeSpaceMapStatistics(int elevel) ...@@ -709,20 +709,14 @@ PrintFreeSpaceMapStatistics(int elevel)
needed = (sumRequests + numRels) * CHUNKPAGES; needed = (sumRequests + numRels) * CHUNKPAGES;
ereport(elevel, ereport(elevel,
(errmsg("free space map contains information about:"))); (errmsg("free space map contains information about:\n"
"%d relations, limit %d relations\n"
ereport(elevel, "%d pages with free space, %.0f pages (with overhead)\n"
(errmsg("%d relations, limit %d relations", "%.0f pages required to track all freespace, limit %d pages (%.0f kB)",
numRels, MaxFSMRelations))); numRels, MaxFSMRelations,
storedPages, Min(needed, MaxFSMPages),
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)",
needed, MaxFSMPages, needed, MaxFSMPages,
(double) FreeSpaceShmemSize() / 1024.0))); (double) FreeSpaceShmemSize() / 1024.0)));
CheckFreeSpaceMapStatistics(NOTICE, numRels, needed); CheckFreeSpaceMapStatistics(NOTICE, numRels, needed);
/* Print to server logs too because is deals with a config variable. */ /* Print to server logs too because is deals with a config variable. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment