| От | Richard Huxton |
|---|---|
| Тема | Re: grant problem |
| Дата | |
| Msg-id | 424010DE.9020802@archonet.com обсуждение исходный текст |
| Ответ на | grant problem (Rajarshi Mukherjee <mukherjee.rajarshi@gmail.com>) |
| Список | pgsql-general |
Rajarshi Mukherjee wrote: > Hello all, > > i have a function that updates a table. I gave execute grant on it to > a particular user but no grant on the table in question. > > when logging in as that user and executing the function, i get an error > ERROR: permission denied for relation <table_name> > > How can i ensure that any update on this table is only done through > that function, and that the function is oublicly executable? Check the manuals for "CREATE FUNCTION" - particularly the section on SECURITY INVOKER vs SECURITY DEFINER -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера