This commit is contained in:
2025-09-18 07:48:51 +02:00
parent b131af5a82
commit a413a5173d
6 changed files with 134 additions and 22 deletions

View File

@@ -65,24 +65,3 @@ create table region (
insert into region values
(1, 'Est'), (2, 'Ouest');
-- Apache Superset
create database superset;
create user superset with password 'supermotdepasse';
grant all privileges on database superset to superset;
grant connect on database sql to superset;
grant usage on schema public to superset;
grant select on table famille, article to superset;
-- Pour toutes les tables dun schéma existant
grant select on all tables in schema public to superset;
-- Privilège par défaut pour que chaque nouvelle table créée dans public donnera automatiquement le droit SELECT à superset.
alter default privileges in schema public
grant select on tables to superset;
\c superset
alter schema public owner to superset;
grant all privileges on schema public to superset;