mirror of
https://github.com/postgres/postgres.git
synced 2025-05-12 16:21:30 +03:00
Make VACUUM VERBOSE FSM output all output in a single INFO output
statement.
This commit is contained in:
parent
e8ad6d9666
commit
52e08c35f7
@ -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)
|
|||||||
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. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user