Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.

Поиск
Список
Период
Сортировка
От josepdba
Тема Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.
Дата
Msg-id 1337546719958-5709232.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.  (leaf_yxj <leaf_yxj@163.com>)
Список 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 по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Libpq question
Следующее
От: Chris Angelico
Дата:
Сообщение: Re: Libpq question