oneuptime/Docs/Database/read-only-db-user.sql
2023-05-01 12:50:25 +01:00

2 lines
97 B
SQL

CREATE ROLE readonlyuser WITH LOGIN PASSWORD '<password>'
GRANT pg_read_all_data TO readonlyuser;