Skip to content

Commit fa6f9ce

Browse files
committed
Make postgresql.conf.sample match the initdb defaults. This fixes
comment alignment on most systems.
1 parent 65ab9f4 commit fa6f9ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
# - Memory -
100100

101-
#shared_buffers = 1000 # min 16 or max_connections*2, 8kB each
101+
#shared_buffers = 32000kB # min 16 or max_connections*2, 8kB each
102102
# (change requires restart)
103103
#temp_buffers = 1000 # min 100, 8kB each
104104
#max_prepared_transactions = 5 # can be 0 or more
@@ -111,7 +111,7 @@
111111

112112
# - Free Space Map -
113113

114-
#max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each
114+
#max_fsm_pages = 1600000 # 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: 3 additions & 3 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.121 2006/08/20 16:08:09 meskes Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.122 2006/09/14 23:21:47 momjian Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -1214,10 +1214,10 @@ setup_config(void)
12141214
conflines = replace_token(conflines, "#max_connections = 100", repltok);
12151215

12161216
snprintf(repltok, sizeof(repltok), "shared_buffers = %dkB", n_buffers);
1217-
conflines = replace_token(conflines, "#shared_buffers = 1000", repltok);
1217+
conflines = replace_token(conflines, "#shared_buffers = 32000kB", repltok);
12181218

12191219
snprintf(repltok, sizeof(repltok), "max_fsm_pages = %d", n_fsm_pages);
1220-
conflines = replace_token(conflines, "#max_fsm_pages = 20000", repltok);
1220+
conflines = replace_token(conflines, "#max_fsm_pages = 1600000", repltok);
12211221

12221222
#if DEF_PGPORT != 5432
12231223
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