Skip to content

Commit f5f9577

Browse files
committed
Modify max_fsm_pages in postgresql.conf.sample to show a typical value,
rather than a value too high.
1 parent 4945a8f commit f5f9577

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111

112112
# - Free Space Map -
113113

114-
#max_fsm_pages = 1638400 # min max_fsm_relations*16, 6 bytes each
114+
#max_fsm_pages = 204800 # min max_fsm_relations*16, 6 bytes each
115115
# (change requires restart)
116116
#max_fsm_relations = 1000 # min 100, ~70 bytes each
117117
# (change requires restart)

src/bin/initdb/initdb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
* Portions taken from FreeBSD.
4444
*
45-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.128 2007/01/06 19:40:00 momjian Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.129 2007/01/20 17:04:58 momjian Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -1251,7 +1251,7 @@ setup_config(void)
12511251
conflines = replace_token(conflines, "#shared_buffers = 32MB", repltok);
12521252

12531253
snprintf(repltok, sizeof(repltok), "max_fsm_pages = %d", n_fsm_pages);
1254-
conflines = replace_token(conflines, "#max_fsm_pages = 1638400", repltok);
1254+
conflines = replace_token(conflines, "#max_fsm_pages = 204800", repltok);
12551255

12561256
#if DEF_PGPORT != 5432
12571257
snprintf(repltok, sizeof(repltok), "#port = %d", DEF_PGPORT);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy