* MaxLivePostmasterChildren * * This reports the number of entries needed in per-child-process arrays * (the PMChildFlags array, and if EXEC_BACKEND the ShmemBackendArray). * These arrays include regular backends, autovac workers, walsenders * and background workers, but not special children nor dead_end children. * This allows the arrays to have a fixed maximum size, to wit the same * too-
| 6418 | * isn't too critical as long as it's more than MaxBackends. |
| 6419 | */ |
| 6420 | int |
| 6421 | MaxLivePostmasterChildren(void) |
| 6422 | { |
| 6423 | return 2 * (MaxConnections + autovacuum_max_workers + 1 + |
| 6424 | login_monitor_max_processes /* Login Monitor */ + max_wal_senders + max_worker_processes); |
| 6425 | } |
| 6426 | |
| 6427 | /* |
| 6428 | * Connect background worker to a database. |
no outgoing calls
no test coverage detected