Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Порівняння попередніх версій Попередня ревізія Наступна ревізія | Попередня ревізія | ||
|
programming:databases:postgresql:roles_example [2020/07/29 15:43] charon [Grant access to the schema] |
programming:databases:postgresql:roles_example [2020/07/29 15:45] (поточний) charon [Grant usage for future tables, sequences, routines in schema for basic roles] |
||
|---|---|---|---|
| Рядок 45: | Рядок 45: | ||
| </ | </ | ||
| - | All next commands in this section require that current user can administer roles experiment_admin, | + | All next commands in this section require that current user can administer roles //experiment_admin//, //experiment_read_write//, //experiment_read_only//. To achieve it, use commands: |
| <code postgresql> | <code postgresql> | ||
| GRANT experiment_admin, | GRANT experiment_admin, | ||
| Рядок 65: | Рядок 65: | ||
| ==== Grant usage for future tables, sequences, routines in schema for basic roles ==== | ==== Grant usage for future tables, sequences, routines in schema for basic roles ==== | ||
| <code postgresql> | <code postgresql> | ||
| - | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_write, | + | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_only, |
| - | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_write, | + | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_only, |
| - | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_write, | + | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_only, |
| - | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_write, | + | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_only, |
| - | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_write, | + | ALTER DEFAULT PRIVILEGES FOR ROLE experiment_read_only, |
| </ | </ | ||