Allow a user to kill his own queries using pg_cancel_backend()

Magnus Hagander <magnus@hagander.net>

Commit: 0495aaad8b337642830a4d4e82f8b8c02b27b1be
Author: Magnus Hagander <magnus@hagander.net>
Date: 2012-01-15T14:34:40Z
Releases: 9.2.0
Allow a user to kill his own queries using pg_cancel_backend()

Allows a user to use pg_cancel_queries() to cancel queries in
other backends if they are running under the same role.
pg_terminate_backend() still requires superuser permissoins.

Short patch, many authors working on the bikeshed: Magnus Hagander,
Josh Kupershmidt, Edward Muller, Greg Smith.

Files

PathChange+/−
doc/src/sgml/func.sgml modified +10 −3
src/backend/utils/adt/misc.c modified +70 −10