Ensure a fixed UID/GID for the postgres user.
Ensure proper data directory ownership.