| От | Peter Eisentraut |
|---|---|
| Тема | Re: [HACKERS] replace GrantObjectType with ObjectType |
| Дата | |
| Msg-id | b99aa682-923b-9931-e83f-2e1d0d755fb4@2ndquadrant.com обсуждение исходный текст |
| Ответ на | Re: [HACKERS] replace GrantObjectType with ObjectType (Stephen Frost <sfrost@snowman.net>) |
| Ответы |
Re: [HACKERS] replace GrantObjectType with ObjectType
Re: [HACKERS] replace GrantObjectType with ObjectType |
| Список | pgsql-hackers |
On 10/12/17 22:18, Stephen Frost wrote: > I'm generally supportive of this, but I'm not entirely thrilled with how > this ends up conflating TABLEs and RELATIONs. From the GRANT > perspective, there's no distinction, and that was clear from the > language used and how things were handled, but the OBJECT enum has that > distinction. This change just makes VIEWs be OBJECT_TABLE even though > they actually aren't tables and there even is an OBJECT_VIEW value. > This commit may be able to grok that and manage it properly, but later > hackers might miss that. > > I would also suggest that the naming be consistent with the other bits > of the GRANT system (eg: ACL_ALL_RIGHTS_NAMESPACE would be changed to > ACL_ALL_RIGHTS_SCHEMA, to match OBJECT_SCHEMA). OK, here is a bigger patch set that addresses these issues. I have added OBJECT_RELATION to reflect the difference between TABLE and RELATION. I have also renamed NAMESPACE to SCHEMA. And then I got rid of AclObjectKind as well, because it's just another enum for the same thing. This is now a bit bigger, so I'll put it in the commit fest for detailed review. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера