| От | Stephen Frost |
|---|---|
| Тема | Re: RLS open items are vague and unactionable |
| Дата | |
| Msg-id | 20150915142234.GS3685@tamriel.snowman.net обсуждение |
| Ответ на | Re: RLS open items are vague and unactionable (Dean Rasheed <dean.a.rasheed@gmail.com>) |
| Ответы |
Re: RLS open items are vague and unactionable
Re: RLS open items are vague and unactionable |
| Список | pgsql-hackers |
Dean, * Dean Rasheed (dean.a.rasheed@gmail.com) wrote: > A minor point -- this comment isn't quite right: Fixed. > because the policies that are fetched there are only used for > add_security_quals(), not for add_with_check_options(). It might be > cleaner if the 'if' statement that follows were merged with the > identical one a few lines down, and then those returning policies > could be local to that block, with the 2 pieces of RETURNING handling > done together. Similarly for the upsert block. Done. > Actually, it isn't necessary to test that rt_index == > root->resultRelation, because for all other relations commandType is > set to CMD_SELECT higher up, so the 'returning' bool variable could > just be replaced with 'root->returningList != NIL' throughout. Done. Updated patch attached for review. Unless there are other concerns or issues raised, I'll push this later today. Thanks! Stephen
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера