There are two Postgres installation hanging scenarios:
Scenario #1: Postgres Database Installation Timeout.
When installing the Enterprise Manager, the installation completes with database creation failures. Investigation shows that the installer got timed out due to Postgres database installation taking longer than acceptable. Further review finds that the Postgres Database eventually started, but the APM DB schema is not created.
Scenario #2: Postgres Database Installation Stuck.
When installing the Enterprise Manager, the installation never completes. Investigation shows that the installer hangs due to the Postgres database installer. Further review finds that the EM installation hangs due to Postgres database installation stuck running validateuser.exe process.
Scenario #1: Postgres Database Installation Timeout:
Manually uninstall the partial installation of the Postgres database, so that any instance of Postgres is removed from your server. Now install the Postgres database using the CA APM installer by selecting the Database Only installation option in the Choose the install Set screen.
Scenario #2: Postgres Database Installation Stuck:
Manually end both Postgres and Enterprise Manager installation processes from the Task Manager and restart the CA APM installer again.