Reduce the default for max_worker_processes back to 8.
authorRobert Haas <rhaas@postgresql.org>
Mon, 5 Dec 2016 15:53:21 +0000 (10:53 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 5 Dec 2016 15:53:21 +0000 (10:53 -0500)
Commit b460f5d6693103076dc554aa7cbb96e1e53074f9 -- at my suggestion --
increased the default value of max_worker_processes from 8 to 16, on
the theory that this would be harmless and convenient for users.
Unfortunately, this caused some buildfarm machines with low connection
limits to start failing, so apparently it's not harmless after all.

doc/src/sgml/config.sgml
src/backend/utils/init/globals.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/bin/pg_resetxlog/pg_resetxlog.c

index fdf8b3e9c77bc637c939d1f594c258a62193c6b3..b917f9578ab37c951e93d8c17c695502bd57c780 100644 (file)
@@ -1982,7 +1982,7 @@ include_dir 'conf.d'
         <para>
          Sets the maximum number of background processes that the system
          can support.  This parameter can only be set at server start.  The
-         default is 16.
+         default is 8.
         </para>
 
         <para>
index 6ab03cea17034334a7341268d469c64e0730ee14..630c673cad4af3cd7571ff3f3e8f5d98fd31c33e 100644 (file)
@@ -121,7 +121,7 @@ int         replacement_sort_tuples = 150000;
  */
 int            NBuffers = 1000;
 int            MaxConnections = 90;
-int            max_worker_processes = 16;
+int            max_worker_processes = 8;
 int            max_parallel_workers = 8;
 int            MaxBackends = 0;
 
index 4e49d5b79ccd4a62704bb113e66f0c4ebb89f2ce..a02511754e9cd4fd7218fd400ef54b5af0f7a5b6 100644 (file)
@@ -2477,7 +2477,7 @@ static struct config_int ConfigureNamesInt[] =
            NULL,
        },
        &max_worker_processes,
-       16, 0, MAX_BACKENDS,
+       8, 0, MAX_BACKENDS,
        check_max_worker_processes, NULL, NULL
    },
 
index 1f490c7de4fbee89968bcdb5d25532b0d79b0f96..7f9acfda06719a4e07676fef738c16e6fef30b40 100644 (file)
 # - Asynchronous Behavior -
 
 #effective_io_concurrency = 1      # 1-1000; 0 disables prefetching
-#max_worker_processes = 16     # (change requires restart)
+#max_worker_processes =      # (change requires restart)
 #max_parallel_workers_per_gather = 2   # taken from max_worker_processes
 #max_parallel_workers = 8      # total maximum number of worker_processes
 #old_snapshot_threshold = -1       # 1min-60d; -1 disables; 0 is immediate
index 1beee7f8eb80addf70e8a78d149b923ec25b2f58..2b76f64079769ed7531c483f02f9c5d571709d7e 100644 (file)
@@ -584,7 +584,7 @@ GuessControlValues(void)
    ControlFile.wal_log_hints = false;
    ControlFile.track_commit_timestamp = false;
    ControlFile.MaxConnections = 100;
-   ControlFile.max_worker_processes = 16;
+   ControlFile.max_worker_processes = 8;
    ControlFile.max_prepared_xacts = 0;
    ControlFile.max_locks_per_xact = 64;
 
@@ -800,7 +800,7 @@ RewriteControlFile(void)
    ControlFile.wal_log_hints = false;
    ControlFile.track_commit_timestamp = false;
    ControlFile.MaxConnections = 100;
-   ControlFile.max_worker_processes = 16;
+   ControlFile.max_worker_processes = 8;
    ControlFile.max_prepared_xacts = 0;
    ControlFile.max_locks_per_xact = 64;