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
2c4dea12
Commit
2c4dea12
authored
Mar 14, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue free space notices to both the user and the server log file.
parent
28bcc344
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
src/backend/storage/freespace/freespace.c
src/backend/storage/freespace/freespace.c
+15
-5
No files found.
src/backend/storage/freespace/freespace.c
View file @
2c4dea12
...
...
@@ -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.3
8 2005/03/12 05:21:52
momjian Exp $
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.3
9 2005/03/14 20:15:09
momjian Exp $
*
*
* NOTES:
...
...
@@ -221,6 +221,8 @@ static HTAB *FreeSpaceMapRelHash; /* points to (what used to be)
* FSMHeader->relHash */
static
void
CheckFreeSpaceMapStatistics
(
int
elevel
,
int
numRels
,
double
needed
);
static
FSMRelation
*
lookup_fsm_rel
(
RelFileNode
*
rel
);
static
FSMRelation
*
create_fsm_rel
(
RelFileNode
*
rel
);
static
void
delete_fsm_rel
(
FSMRelation
*
fsmrel
);
...
...
@@ -711,16 +713,24 @@ PrintFreeSpaceMapStatistics(int elevel)
errdetail
(
"FSM size: %d relations + %d pages = %.0f kB shared memory."
,
MaxFSMRelations
,
MaxFSMPages
,
(
double
)
FreeSpaceShmemSize
()
/
1024
.
0
)));
if
(
numRels
==
MaxFSMRelations
)
ereport
(
NOTICE
,
CheckFreeSpaceMapStatistics
(
NOTICE
,
numRels
,
needed
);
/* Print to server logs too because is deals with a config variable. */
CheckFreeSpaceMapStatistics
(
LOG
,
numRels
,
needed
);
}
static
void
CheckFreeSpaceMapStatistics
(
int
elevel
,
int
numRels
,
double
needed
)
{
if
(
numRels
==
MaxFSMRelations
)
ereport
(
elevel
,
(
errmsg
(
"max_fsm_relations(%d) equals the number of relations checked"
,
MaxFSMRelations
),
errhint
(
"You have >= %d relations.
\n
"
"Consider increasing the configuration parameter
\"
max_fsm_relations
\"
."
,
numRels
)));
else
if
(
needed
>
MaxFSMPages
)
ereport
(
NOTICE
,
ereport
(
elevel
,
(
errmsg
(
"the number of page slots needed (%.0f) exceeds max_fsm_pages (%d)"
,
needed
,
MaxFSMPages
),
errhint
(
"Consider increasing the configuration parameter
\"
max_fsm_relations
\"\n
"
...
...
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