This should solve permission issues that can occur in some cases (e.g. on Windows PostgreSQL can complain about an ownership mismatch of the /var/lib/postgresql/data directory).