Re: Expression index with function based on current_user?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Expression index with function based on current_user?
Дата
Msg-id 14149.1139414395@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Expression index with function based on current_user?  (Fredrik Olsson <fredrik.olsson@treyst.se>)
Список pgsql-hackers
Fredrik Olsson <fredrik.olsson@treyst.se> writes:
> CREATE VIEW foo AS
>   SELECT * FROM private.t_foo WHERE private.haveaccess();
> GRANT ALL ON foo TO public;

If the function is parameterless as you show, what is it accomplishing
that could not be done with grant/revoke on the view?

If it is not parameterless, you had better be more specific about what
it depends on.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: adding a new catalog
Следующее
От: Tom Lane
Дата:
Сообщение: Upcoming re-releases