More cleanup on roles patch. Allow admin option to be inherited through
Tom Lane <tgl@sss.pgh.pa.us>
More cleanup on roles patch. Allow admin option to be inherited through role memberships; make superuser/createrole distinction do something useful; fix some locking and CommandCounterIncrement issues; prevent creation of loops in the membership graph.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/dbcommands.c | modified | +8 −4 |
| src/backend/commands/user.c | modified | +297 −157 |
| src/backend/parser/gram.y | modified | +22 −11 |
| src/backend/parser/keywords.c | modified | +3 −1 |
| src/backend/utils/adt/acl.c | modified | +177 −116 |
| src/backend/utils/init/flatfiles.c | modified | +25 −21 |
| src/include/utils/acl.h | modified | +2 −1 |