From 7bba3cf1e4ce74814339133608c759e9ab711054 Mon Sep 17 00:00:00 2001 From: Kaimbacher Date: Wed, 21 Jul 2021 14:35:26 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EDatenbank=5Fsosdb=5Fanlegen=E2=80=9C?= =?UTF-8?q?=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Datenbank_sosdb_anlegen.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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