Add an Assert() to max_parallel_workers enforcement. To prevent future bugs along the lines of the one corrected by commit 8ff518699f19dd0a5076f5090bac8400b8233f7f, or find any that remain in the current code, add an Assert() that the difference between parallel_register_count and parallel_terminate_count is in a sane range.
Kuntal Ghosh, with considerable tidying-up by me, per a suggestion from Neha Khatri. Reviewed by Tomas Vondra. Discussion: http://postgr.es/m/cafo0u+-e8yzchwvnvn5berdpgx2z9vzuxq8dxx9c0xfgbc7...@mail.gmail.com Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/6599c9ac3340b6cd3d86a0a7f866b80a009fecab Modified Files -------------- src/backend/postmaster/bgworker.c | 3 +++ src/backend/utils/misc/guc.c | 6 +++--- src/include/postmaster/bgworker_internals.h | 7 +++++++ 3 files changed, 13 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
