Try using the postgres user with chown.