Re: Login as different user inside of a function.

Поиск
Список
Период
Сортировка
От Stuart
Тема Re: Login as different user inside of a function.
Дата
Msg-id 3F0466CB.8020204@blueyonder.co.uk
обсуждение исходный текст
Ответ на Database Encryption  ("JR Richards" <jr@ebcrp.org>)
Список pgsql-admin
Kris Kiger wrote:
> Here's my problem.  I have user X calling a database function.  The
> function inserts data into table Y.  User X only has select access to
> this table.  Is there some way to allow user X to call a function that
> does an insert for him/her without user X having to have write access to
> table Y?  Is it possible to log in as another user inside of a function?
> Thanks for the help!
>
> Kris

If you are using 7.3 or later you can create the function using SECURITY
DEFINER.
hth,
- Stuart


В списке pgsql-admin по дате отправления:

Предыдущее
От: Derek Main
Дата:
Сообщение: Re: zero (o) return code on failure of pg_dump
Следующее
От: "Daniel Seichter"
Дата:
Сообщение: Re: Advantages and disadvantages of more than one dbserver on one server