Thread: if postmaster is started on a certain port, should I be able to telnet there?

if postmaster is started on a certain port, should I be able to telnet there?

From
Terrence Brannon
Date:
I started postmaster via:

  ./bin/postmaster -D data -p 7000 &

but why is a telnet localhost 7000

result in a refused connection even though

  ./bin/psql -p 7000 test postgres

works?

Connecting via DBD::Pg is failing and I wanted to try telnetting to
debug the problem but telnet results in refused connections.



Terrence Brannon <blessed@sv-luka.org> writes:
> I started postmaster via:
>   ./bin/postmaster -D data -p 7000 &
> but why is a telnet localhost 7000
> result in a refused connection even though
>   ./bin/psql -p 7000 test postgres
> works?

You forgot -i, so only Unix-socket connections will be accepted.

            regards, tom lane