Improve PostgreSQL installation script.