Re: Postgres trigger side-effect is occurring out of order withrow-level security select policy

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Postgres trigger side-effect is occurring out of order withrow-level security select policy
Дата
Msg-id 26b52a79-cef2-903c-3696-fc3b6d6cbcb4@aklaver.com
обсуждение исходный текст
Ответ на Postgres trigger side-effect is occurring out of order with row-levelsecurity select policy  (Carl Sverre <sverre.carl@gmail.com>)
Ответы Re: Postgres trigger side-effect is occurring out of order withrow-level security select policy
Список pgsql-general
On 9/30/18 1:13 PM, Carl Sverre wrote:
> Thanks for the initial results. Can you check that you are not using 
> super permissions and are enabling row security when running the test? 
> Super ignores row security.

Yeah, big oops on my part, I was running as superuser. Running as 
non-superuser resulted in the failure you see. I tried to get around 
this with no success. My suspicion is that the new row in b is not 
visible to the returning(SELECT) query in a until after the transaction 
completes. Someone with more knowledge on this then I will have to 
confirm/deny my suspicion.


> 
> Also yes, I forgot to add the policy names, sorry about that.
> On Sun, Sep 30, 2018 at 1:34 AM Charles Clavadetscher (SwissPUG) 
> <clavadetscher@swisspug.org <mailto:clavadetscher@swisspug.org>> wrote:
> 
>     Hello

-- 
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Arup Rakshit
Дата:
Сообщение: Re: Why my query not using index to sort?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Why my query not using index to sort?