Richard Huxton <dev(at)archonet(dot)com> writes:
> Luca Ferrari wrote:
>> I've started the daemon as:
>> postmaster -D /mnt/data/database &
> Is that how you normally start your DB server?
Ditto. But if you are using a stock postgresql.conf then in fact the
postmaster will *not* be listening to TCP with that command line.
You need to check listen_addresses or tcpip_socket depending on which
Postgres release this is.
regards, tom lane