| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера