„Datenbank_sosdb_anlegen“ ändern
parent
3d28273c5b
commit
7bba3cf1e4
|
@ -38,14 +38,16 @@ create a schemma 'gba' for all tethys tabels with full authorization for the use
|
||||||
`sosdb=# grant select, insert, update, delete on all tables in schema gba to sos_app;`
|
`sosdb=# grant select, insert, update, delete on all tables in schema gba to sos_app;`
|
||||||
> GRANT
|
> GRANT
|
||||||
|
|
||||||
|
**Default "select, insert, update, delete privileges" on tables to sos_app**\
|
||||||
`sosdb=# alter default privileges for role sos_admin in schema gba grant select, insert, update, delete on tables to sos_app;`
|
`sosdb=# alter default privileges for role sos_admin in schema gba grant select, insert, update, delete on tables to sos_app;`
|
||||||
> ALTER DEFAULT PRIVILEGES
|
> ALTER DEFAULT PRIVILEGES
|
||||||
|
|
||||||
|
**Default usage privileges on sequences to sos_app**\
|
||||||
grant usage on all sequences in schema gba to sos_app:\
|
grant usage on all sequences in schema gba to sos_app:\
|
||||||
alter default privileges for role sos_admin in schema gba grant usage on sequences to sos_app:\
|
`sosdb=# alter default privileges for role sos_admin in schema gba grant usage on sequences to sos_app;`
|
||||||
`sosdb=# alter default privileges for role sos_admin in schema gba grant select, insert, update, delete on tables to sos_app;`
|
|
||||||
> ALTER DEFAULT PRIVILEGES
|
> ALTER DEFAULT PRIVILEGES
|
||||||
|
|
||||||
|
**Default execute privileges on function to sos_app**\
|
||||||
grant execute on all functions in schema gba to sos_app:\
|
grant execute on all functions in schema gba to sos_app:\
|
||||||
`alter default privileges for role sos_admin in schema gba grant execute on functions to sos_app;`
|
`alter default privileges for role sos_admin in schema gba grant execute on functions to sos_app;`
|
||||||
> ALTER DEFAULT PRIVILEGES
|
> ALTER DEFAULT PRIVILEGES
|
||||||
|
|
Loading…
Reference in New Issue
Block a user