Jeremy Smith <Jeremy@justasofty.com> writes:
> This is a new area to me, I am rewriting a Microsoft Access
> application for the company I work for in Java and Postgres. I have
> created a testdatabase called history which I can access with <psql
> history> fine as well as from a Perl test app I have written. But
> if I try to specify a host in either my Java test app or psql I get
> the same error message
> Connection to database 'history' failed.
> connectDB() -- connect() failed: Connection refused
> Is the postmaster running (with -i) at '127.0.0.1' and accepting connections
> on TCP/IP port '5432'?
By all evidence you're not running the postmaster with '-i'. Chechk
your startup script.
-Doug