Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e947e115
Commit
e947e115
authored
Apr 23, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify output of VACUUM VERBOSE to be clearer.
parent
0548497c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
src/backend/storage/freespace/freespace.c
src/backend/storage/freespace/freespace.c
+16
-6
No files found.
src/backend/storage/freespace/freespace.c
View file @
e947e115
...
...
@@ -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.
39 2005/03/14 20:15:0
9 momjian Exp $
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.
40 2005/04/23 15:20:3
9 momjian Exp $
*
*
* NOTES:
...
...
@@ -699,6 +699,7 @@ PrintFreeSpaceMapStatistics(int elevel)
fsmrel
!=
NULL
;
fsmrel
=
fsmrel
->
nextPhysical
)
storedPages
+=
fsmrel
->
storedPages
;
/* Copy other stats before dropping lock */
numRels
=
FreeSpaceMap
->
numRels
;
sumRequests
=
FreeSpaceMap
->
sumRequests
;
...
...
@@ -708,11 +709,20 @@ PrintFreeSpaceMapStatistics(int elevel)
needed
=
(
sumRequests
+
numRels
)
*
CHUNKPAGES
;
ereport
(
elevel
,
(
errmsg
(
"free space map: %d relations, %d pages stored; %.0f total pages used"
,
numRels
,
storedPages
,
needed
),
errdetail
(
"FSM size: %d relations + %d pages = %.0f kB shared memory."
,
MaxFSMRelations
,
MaxFSMPages
,
(
double
)
FreeSpaceShmemSize
()
/
1024
.
0
)));
(
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)"
,
needed
,
MaxFSMPages
,
(
double
)
FreeSpaceShmemSize
()
/
1024
.
0
)));
CheckFreeSpaceMapStatistics
(
NOTICE
,
numRels
,
needed
);
/* Print to server logs too because is deals with a config variable. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment