Hacker News new | past | comments | ask | show | jobs | submit login

What I don't understand is why databases don't use tables/views to implement their native permissions systems.

Create a table to hold rows of (db,schema,table,role,read,write) configured by the admin with INSERT/UPDATE/DELETE, then a view that applies inheritance behavior and can answer whether any user can access any given resource.




Literally what PostgreSQL does.

E.g. you can do manual selects from internal tables to see the same content as `\dt` command for example.


Oh, cool. Where's the schema?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: