...
Code Block |
---|
# access the database via psql psql --port=5432 postgres # create superuser for IT/admins and pipeline TDs CREATE ROLE postgres LOGIN password 'postgres'; ALTER USER root CREATEDB; ALTER USER root CREATEROLE; ALTER USER root SUPERUSER; ALTER USER root REPLICATION; # create user that is allowed to create new databases and read/write information CREATE ROLE dbuseruser_daselement LOGIN password 'dbuserpassword'; ALTER USER root CREATEDB; # create replication user that is used by the other facilites CREATE ROLE user_replication WITH REPLICATION LOGIN password 'password'; # exit the database from psql \q |
...