Re: cannot connect anymore from a remote host - Mailing list pgsql-general

From Richard Huxton
Subject Re: cannot connect anymore from a remote host
Date
Msg-id 455342D5.1050605@archonet.com
Whole thread Raw
In response to cannot connect anymore from a remote host  (Luca Ferrari <fluca1978@infinito.it>)
Responses Re: cannot connect anymore from a remote host  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: cannot connect anymore from a remote host  ("Shoaib Mir" <shoaibmir@gmail.com>)
List pgsql-general
Luca Ferrari wrote:
> Hi all,
> after a crash of my machine I restarted the pgsql as usual, and I can connect
> from the machine itself, but no more from a remote host. I checked the
> pg_hba.conf file and it's ok, but either from psql or pgadmin I cannot
> connect to the host. Nmapping my host I cannot see the daemon listening on
> the port 5342.
> I've started the daemon as:
> postmaster -D /mnt/data/database &

Is that how you normally start your DB server? Not via pg_ctl or your
system startup scripts?

> and my pg_hba.conf gile contains:

If you say it's not listening on port 5432 then the pg_hba.conf doesn't
matter. Check your postgresql.conf for valid settings on
listen_addresses and port.

http://www.postgresql.org/docs/8.1/static/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SETTINGS

Once it's listening on the right port, then look at your pg_hba.conf
--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: "Jeremiasz Miedzinski"
Date:
Subject: Re: cannot connect anymore from a remote host
Next
From: "Merlin Moncure"
Date:
Subject: Re: Table design - unknown number of column