Re: BUG #1142: Problem with update permissions for view

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1142: Problem with update permissions for view
Дата
Msg-id 26510.1083343699@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #1142: Problem with update permissions for view  (Arturs Zoldners <az@rpiva.lv>)
Ответы Re: BUG #1142: Problem with update permissions for view  (Arturs Zoldners <az@rpiva.lv>)
Список pgsql-bugs
Arturs Zoldners <az@rpiva.lv> writes:
> -- The following rule prevents user x to update public_data:
> CREATE RULE log_public AS ON UPDATE TO private_data WHERE (new.a <>
> old.a) DO INSERT INTO private_log (old_val, new_val) VALUES (old.a,
> new.a);

This is a known problem.  It's fixed for 7.5 but there seems no way to
back-port the fix into existing release series (without forcing initdb).

The error is essentially that the use of an INSERT command as the rule
body causes the original view to be checked for INSERT rather than
UPDATE permissions ...

            regards, tom lane

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

Предыдущее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1145: silent REVOKE failures
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1145: silent REVOKE failures