Privileged CUD Access via Stored Procs

Поиск
Список
Период
Сортировка
От Lance Arlaus
Тема Privileged CUD Access via Stored Procs
Дата
Msg-id 000201c5b09d$de8f3b50$6401a8c0@LanceLaptop
обсуждение исходный текст
Ответы Re: Privileged CUD Access via Stored Procs  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-novice
All-
 
I've traditionally used stored procedures in other databases as a means to control access to tables for create, update, and delete (CUD) operations, prohibiting arbitrary access and ensuring data integrity, etc.  Ordinary users are prohibited from accessing tables directly and, instead, must use the procedures provided to perform modifications (while still being able to perform arbitrary queries on the data).
I just started working with privileges on Postgres and I can't seem to implement a similar scheme.  For example, if a stored procedure inserts a row into a table, the user must have insert privileges on the underlying table which would allow arbitrary, and potentially prohibited, modifications.
 
Is there a way to implement this pattern on Postgres?
 
-Lance

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

Предыдущее
От: "Morgan Kita"
Дата:
Сообщение: Re: UPDATE: pg_dump fails due to invalid memory request
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Privileged CUD Access via Stored Procs