Modify max_fsm_pages in postgresql.conf.sample to show a typical value,
authorBruce Momjian
Sat, 20 Jan 2007 17:04:58 +0000 (17:04 +0000)
committerBruce Momjian
Sat, 20 Jan 2007 17:04:58 +0000 (17:04 +0000)
rather than a value too high.

src/backend/utils/misc/postgresql.conf.sample
src/bin/initdb/initdb.c

index 50a02a62a505a7b6695c3a062e7ac6fd2b3f59e3..fb8d0bca86ae4e9eaedf9feaf13a04ff3c58cda3 100644 (file)
 
 # - Free Space Map -
 
-#max_fsm_pages = 1638400       # min max_fsm_relations*16, 6 bytes each
+#max_fsm_pages = 204800            # min max_fsm_relations*16, 6 bytes each
                    # (change requires restart)
 #max_fsm_relations = 1000      # min 100, ~70 bytes each
                    # (change requires restart)
index ab5c3f44d686056e1d717311fa60f104eb33837c..0d3f092080c30d70d85d8581a81b29ace564740f 100644 (file)
@@ -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.128 2007/01/06 19:40:00 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.129 2007/01/20 17:04:58 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1251,7 +1251,7 @@ setup_config(void)
    conflines = replace_token(conflines, "#shared_buffers = 32MB", repltok);
 
    snprintf(repltok, sizeof(repltok), "max_fsm_pages = %d", n_fsm_pages);
-   conflines = replace_token(conflines, "#max_fsm_pages = 1638400", repltok);
+   conflines = replace_token(conflines, "#max_fsm_pages = 204800", repltok);
 
 #if DEF_PGPORT != 5432
    snprintf(repltok, sizeof(repltok), "#port = %d", DEF_PGPORT);