Re: grant problem

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Szmutku Zoltán
Дата:
Сообщение: Constraint problem
Следующее
От: Mike Rylander
Дата:
Сообщение: Re: Exporting to XML