Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa6f9ce

Browse files
committed
Make postgresql.conf.sample match the initdb defaults. This fixes
comment alignment on most systems.
1 parent65ab9f4 commitfa6f9ce

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
#ifDEF_PGPORT!=5432
12231223
snprintf(repltok,sizeof(repltok),"#port = %d",DEF_PGPORT);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp