Re: row based security ... was Different views with same name for

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: row based security ... was Different views with same name for
Дата
Msg-id 10815.1011644360@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: row based security ... was Different views with same name for  (Marc Munro <marc@bloodnok.com>)
Ответы Re: row based security ... was Different views with same  (Marc Munro <marc@bloodnok.com>)
Список pgsql-general
Marc Munro <marc@bloodnok.com> writes:
> For this, we need to be able to have functions which run with the
> permissions of the rule owner rather than the caller (please see my
> response, in plsql-general, to depesz@depesz.pl, Re: IDEA: "suid"
> function).

I believe "suid" functions are a more practical solution than expecting
the rule mechanism to handle this for you.  I don't want to put access
checking/id switching overhead into the basic expression evaluation
engine; but it's hard to see how we could make functions-invoked-in-rules
be treated specially without that.  The problem is that expressions
coming out of the rewriter might be arbitrary combinations of clauses
that appeared in the rule and clauses that appeared in the user's
original query.

"Suid" functions have been on the TODO list for awhile.  Peter E. has
been making noises recently suggesting that he's actually planning to
make them happen for 7.3.

            regards, tom lane

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: [HACKERS] PostgreSQL Licence: GNU/GPL
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: [HACKERS] PostgreSQL Licence: GNU/GPL