org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the

org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

BUILD FAILED
C:\Users\dablu\Desktop\117149_PE_8.7\pegaGuiInstallerTemp\build.xml:164: Unable to connect to database within 15 seconds.

@Dablus78 I found the solution for this and able to install Pega Personal Edition successfully.

Solution : install the latest version of pgadmin then proceed to install.