Update failed (postgresql)

The log is full of:

2020-06-03 16:01:21.074 UTC [693] FATAL: data directory “/shared/postgres_data” has wrong ownership
2020-06-03 16:01:21.074 UTC [693] HINT: The server must be started by the user that owns the data directory.