Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants |
| Дата | |
| Msg-id | 24482.1218506038@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants ("Heikki Linnakangas" <heikki@enterprisedb.com>) |
| Ответы |
Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants
Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants |
| Список | pgsql-bugs |
"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> + root->parse->rtable = list_union(root->parse->rtable, subquery->rtable);
That's one heck of a scary patch: nowhere in list_union's API is there
any guarantee that it preserves list ordering, but we *must not* change
the positions of the existing rtable entries.
I think it might be better to fix the problem in
pull_up_union_leaf_queries instead; given that it wasn't broken till
recently, I think it's arguably that function's fault. Can we redesign
it to pull up everything in the subquery rtable, not just what was
referenced?
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера