Change minimum max_worker_processes from 1 to 0
authorPeter Eisentraut
Tue, 2 Aug 2016 17:15:35 +0000 (13:15 -0400)
committerPeter Eisentraut
Tue, 2 Aug 2016 17:15:35 +0000 (13:15 -0400)
Setting it to 0 is probably not useful in practice, but it allows
testing of situations without available background worker slots.

src/backend/utils/misc/guc.c

index 6ac5184b3743fe0aed88b1b3a6ee7a170f3a9f69..9c93df0f0a49efbecee3e7dc8cc60dd73cd9af46 100644 (file)
@@ -2469,7 +2469,7 @@ static struct config_int ConfigureNamesInt[] =
            NULL,
        },
        &max_worker_processes,
-       8, 1, MAX_BACKENDS,
+       8, 0, MAX_BACKENDS,
        check_max_worker_processes, NULL, NULL
    },