Disallowing setting the max_spare_children greater than num_init_children.
authorMuhammad Usama <m.usama@gmail.com>
Sat, 22 Jul 2023 13:54:31 +0000 (18:54 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Sat, 22 Jul 2023 13:54:31 +0000 (18:54 +0500)
commite59d034f4874a9d4e9ff92893f7001d7278aa6c1
tree78da6b6a676c0a942403a1354710775952b74e3b
parentcd037513f679f8dde31b396ddd3907a143020370
Disallowing setting the max_spare_children greater than num_init_children.

Config post-processing stage now throws an error if num_init_children is
smaller than max_spare_children.
Commit also adjusts the number of child processes spawned at startup based on
the configured process management strategy.
For the Aggressive strategy, max_spare_children number of processes is spawned;
for the other two strategies, min_spare_children number of children gets
created at startup.
src/config/pool_config_variables.c
src/main/pgpool_main.c