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
272b6ef2
Commit
272b6ef2
authored
Feb 20, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent BLCKSZ < 1024, and have initdb test shared buffers based on the
BLCKSZ value.
parent
4816b0f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+3
-2
src/include/pg_config_manual.h
src/include/pg_config_manual.h
+5
-1
No files found.
src/bin/initdb/initdb.c
View file @
272b6ef2
...
...
@@ -42,7 +42,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.13
3 2007/02/16 02:10:07 alvherre
Exp $
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.13
4 2007/02/20 23:49:38 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1208,7 +1208,8 @@ test_config_settings(void)
for
(
i
=
0
;
i
<
bufslen
;
i
++
)
{
test_buffs
=
trial_bufs
[
i
];
/* Use same amount of memory, independent of BLCKSZ */
test_buffs
=
(
trial_bufs
[
i
]
*
8192
)
/
BLCKSZ
;
if
(
test_buffs
<=
ok_buffers
)
{
test_buffs
=
ok_buffers
;
...
...
src/include/pg_config_manual.h
View file @
272b6ef2
...
...
@@ -6,7 +6,7 @@
* for developers. If you edit any of these, be sure to do a *full*
* rebuild (and an initdb if noted).
*
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.2
4 2007/02/06 09:16:08 petere
Exp $
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.2
5 2007/02/20 23:49:38 momjian
Exp $
*------------------------------------------------------------------------
*/
...
...
@@ -25,6 +25,10 @@
*/
#define BLCKSZ 8192
#if BLCKSZ < 1024
#error BLCKSZ must be >= 1024
#endif
/*
* RELSEG_SIZE is the maximum number of blocks allowed in one disk
* file. Thus, the maximum size of a single file is RELSEG_SIZE *
...
...
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