diff --git a/Datenbank_sosdb_anlegen.md b/Datenbank_sosdb_anlegen.md index b1a454a..5b24529 100644 --- a/Datenbank_sosdb_anlegen.md +++ b/Datenbank_sosdb_anlegen.md @@ -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;` > 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;` > ALTER DEFAULT PRIVILEGES +**Default usage privileges on sequences 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 select, insert, update, delete on tables to sos_app;` +`sosdb=# alter default privileges for role sos_admin in schema gba grant usage on sequences to sos_app;` > ALTER DEFAULT PRIVILEGES +**Default execute privileges on function 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