Don't count background workers against a user's connection limit.
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 1 Feb 2017 22:52:35 +0000 (17:52 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 1 Feb 2017 23:02:43 +0000 (18:02 -0500)
commitf1169ab501ce90e035a7c6489013a1d4c250ac92
tree561667bd01bdfb5184853b65bccf1da5e326c1be
parentaedd554f84bb3cedb32e6e2a954a70537a4da6b9
Don't count background workers against a user's connection limit.

Doing so doesn't seem to be within the purpose of the per user
connection limits, and has particularly unfortunate effects in
conjunction with parallel queries.

Backpatch to 9.6 where parallel queries were introduced.

David Rowley, reviewed by Robert Haas and Albe Laurenz.
doc/src/sgml/ref/create_database.sgml
doc/src/sgml/ref/create_role.sgml
src/backend/access/transam/twophase.c
src/backend/storage/ipc/procarray.c
src/backend/storage/lmgr/proc.c
src/backend/utils/init/postinit.c
src/include/storage/proc.h
src/include/storage/procarray.h