Re: Limit on number of users in postgresql?
От | Ron Peterson |
---|---|
Тема | Re: Limit on number of users in postgresql? |
Дата | |
Msg-id | 20070128233907.GA26983@yellowbank.com обсуждение исходный текст |
Ответ на | Re: Limit on number of users in postgresql? (Bill Moran <wmoran@collaborativefusion.com>) |
Ответы |
Re: Limit on number of users in postgresql?
|
Список | pgsql-general |
On Sun, Jan 28, 2007 at 01:21:09PM -0500, Bill Moran wrote: > The only thing that's missing is row-level granularity. There's at least > one project out there supporting that, and you can also simulate it with > clever usage of stored procedures and the ability to run them with the > permissions of the definer instead of the executer. You can also use rules to protect rows. E.g. CREATE RULE atable__lock_user_insert AS ON INSERT TO atable WHERE CURRENT_USER != 'mysuper' AND new.username != CURRENT_USER DO INSTEAD nothing; CREATE RULE atable__lock_user_update AS ON UPDATE TO atable WHERE CURRENT_USER != 'mysuper' AND old.username != CURRENT_USER DO INSTEAD nothing; CREATE RULE atable__lock_user_delete AS ON DELETE TO atable WHERE CURRENT_USER != 'mysuper' AND old.username != CURRENT_USER DO INSTEAD nothing; -- Ron Peterson https://www.yellowbank.com/
В списке pgsql-general по дате отправления: