Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks. - Mailing list pgsql-general

From josepdba
Subject Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.
Date
Msg-id 1337546719958-5709232.post@n5.nabble.com
Whole thread Raw
In response to Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.  (leaf_yxj <leaf_yxj@163.com>)
List pgsql-general
I also needed to give the privilege to execute pg_terminate_backend to
non-superusers and I made it in a separate schema, too. But, to avoid users
killing other user connections I made another function that only gives the
option to kill connections made by the same user that's executing the
function.

I made a post in my blog:
http://dbadailystuff.com/2012/05/12/pg_terminate_backend-for-non-superusers/


--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Questions-of-the-privileges-to-use-the-pg-cancel-backend-and-pg-terminate-backend-function-Thanks-tp5618129p5709232.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Libpq question
Next
From: Chris Angelico
Date:
Subject: Re: Libpq question