[HACKERS] RLS in CTE incorrect permission failure

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема [HACKERS] RLS in CTE incorrect permission failure
Дата
Msg-id CAHz80e6vjn3WdbK35u8Txk6=TyrcvPwU2gQeoc7jwLWvazVEjQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] RLS in CTE incorrect permission failure  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
In the attached script, the second insert into t2 (as part of the CTE) should succeed. My actual use case isn't much more complex; the function is used primarily to allow peaking at columns that the function definer has access to but a typical user does not. Function also makes it easy to copy this policy to a number of structures.

The function within the policy doesn't seem to be able to see records inserted by earlier statements in the CTE. Perhaps this is as simple as adding a command counter increment in the right place?

Fails in 9.5.7 and HEAD.

--
Rod Taylor
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: [HACKERS] PG 10beta2 schedule
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] PATCH: Batch/pipelining support for libpq