aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2012-09-27 12:15:03 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2012-09-27 12:29:51 -0300
commitae90ffada4cb27c9194797c43d864a86ce88d72c (patch)
tree69a2ddee386449ba6b64bb71bb31fa71b2efd17b /doc/src
parent55c1687a97c3c2b6cbf7c1b45830b49f03641908 (diff)
downloadpostgresql-ae90ffada4cb27c9194797c43d864a86ce88d72c.tar.gz
postgresql-ae90ffada4cb27c9194797c43d864a86ce88d72c.zip
Have pg_terminate/cancel_backend not ERROR on non-existent processes
This worked fine for superusers, but not for ordinary users trying to cancel their own processes. Tweak the order the checks are done in so that we correctly return SIGNAL_BACKEND_ERROR (which current callers know to ignore without erroring out) so that an ordinary user can loop through a resultset without fearing that a process might exit in the middle of said looping -- causing the remaining processes to go unsignalled. Incidentally, the last in-core caller of IsBackendPid() is now gone. However, the function is exported and must remain in place, because there are plenty of callers in external modules. Author: Josh Kupershmidt Reviewed by Noah Misch
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions