Re: Multiple table relationship constraints

Поиск
Список
Период
Сортировка
От Jack Christensen
Тема Re: Multiple table relationship constraints
Дата
Msg-id 4DC7EDA5.7030906@hylesanderson.edu
обсуждение исходный текст
Ответ на Re: Multiple table relationship constraints  (Rick Genter <rick.genter@gmail.com>)
Список pgsql-general
On 5/5/2011 3:26 PM, Rick Genter wrote:
>
> Hm. I think the way I would handle this is to put the business logic
> for inserting/updating into the room_assignments table into one or
> more functions and have a special user that owns the tables and owns
> the functions and declare the functions to be SECURITY DEFINER. Revoke
> INSERT/UPDATE/DELETE access to the tables from all other users. Then
> you grant your regular users EXECUTE access to the functions. The
> functions run as the user that created them, so they will have direct
> INSERT/UPDATE/DELETE access to the tables while your regular users won't.
>
Thanks everyone for your advice. I think this type of approach will be
very helpful.

--
Jack Christensen
jackc@hylesanderson.edu


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

Предыдущее
От: mephysto
Дата:
Сообщение: Streaming replication info
Следующее
От: Gabriele Bartolini
Дата:
Сообщение: Re: Streaming replication info