Hi,
I have the same problem:
Unable to login to database (postgres). Reason: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "???" and accepting TCP/IP connections on port 5432?
There is no firewall interfering and when I try to start postgres in services error 1053 occures.
I checked the events relating to postgres: all errors read: GMT FATAL: bogus data in lock file "postmaster.pid": ""
What can I do?