From: Bruce Momjian Date: Fri, 27 Dec 2002 14:07:14 +0000 (+0000) Subject: Trivial patch to increase max_fsm_pages as per earlier discussion. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ffedbbf957e3576c88324212a7a8f2e2474b9e15;p=users%2Fbernd%2Fpostgres.git Trivial patch to increase max_fsm_pages as per earlier discussion. Philip Warner --- diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 1307083706..aac38efae0 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1656,7 +1656,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' Sets the maximum number of relations (tables) for which free space will be tracked in the shared free-space map. The default - is 100. This option can only be set at server start. + is 1000. This option can only be set at server start. diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 26e78c74e0..e177a4c059 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -628,7 +628,7 @@ static struct config_int { {"max_fsm_relations", PGC_POSTMASTER}, &MaxFSMRelations, - 100, 10, INT_MAX, NULL, NULL + 1000, 10, INT_MAX, NULL, NULL }, { {"max_fsm_pages", PGC_POSTMASTER}, &MaxFSMPages, diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index c597342263..1370e3d785 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -50,7 +50,7 @@ # Shared Memory Size # #shared_buffers = 64 # 2*max_connections, min 16, typically 8KB each -#max_fsm_relations = 100 # min 10, fsm is free space map, ~40 bytes +#max_fsm_relations = 1000 # min 10, fsm is free space map, ~40 bytes #max_fsm_pages = 10000 # min 1000, fsm is free space map, ~6 bytes #max_locks_per_transaction = 64 # min 10 #wal_buffers = 8 # min 4, typically 8KB each