Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.
В списке pgsql-general по дате отправления:
| От | leaf_yxj |
|---|---|
| Тема | Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks. |
| Дата | |
| Msg-id | 1333560241895-5618473.post@n5.nabble.com обсуждение исходный текст |
| Ответ на | Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks. (Aaron <aaron@chasingnuts.com>) |
| Ответы |
Re: Re: Questions of the privileges to use the
pg_cancel_backend and pg_terminate_backend function. Thanks.
|
| Список | pgsql-general |
Hi Aaron: thanks. I tried the security definer. it works well as follows : CREATE FUNCTION kill_process(integer) RETURNS boolean AS 'select pg_cancel_backend($1);' LANGUAGE SQL SECURITY DEFINER; ---- One more question about this function : if non-super user get the execute this function, he/her will have privilege to kill all the processes which belong to the postgresql process. How can we avoid that happing. Thanks. Grace -- 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-tp5618129p5618473.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера