aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-04-11 13:03:44 -0400
committerRobert Haas <rhaas@postgresql.org>2017-04-11 13:03:44 -0400
commit6599c9ac3340b6cd3d86a0a7f866b80a009fecab (patch)
tree56403ac7f0c62a1ba37390c3b9b64d44d4a32340 /contrib/postgres_fdw/postgres_fdw.h
parent8ff518699f19dd0a5076f5090bac8400b8233f7f (diff)
downloadpostgresql-6599c9ac3340b6cd3d86a0a7f866b80a009fecab.tar.gz
postgresql-6599c9ac3340b6cd3d86a0a7f866b80a009fecab.zip
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+-E8yzchwVnvn5BeRDPgX2z9vZUxQ8dxx9c0XFGBC7N1Q@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions