Re: setting Postgres client - Mailing list pgsql-general

From Richard Huxton
Subject Re: setting Postgres client
Date
Msg-id 48D3CBBE.9040801@archonet.com
Whole thread Raw
In response to Re: setting Postgres client  ("Markova, Nina" <nmarkova@NRCan.gc.ca>)
Responses Re: setting Postgres client
List pgsql-general
Markova, Nina wrote:
>
> Thanks Richard.
>
>
> I specified the host IP ( I use the default 5432 port), got error:
> psql: could not connect to server: Connection refused
>         Is the server running on host "192.168.XX.XXX" and accepting
>         TCP/IP connections on port 5432?
>
> The only tcp lines in my postgres.conf are
> #tcp_keepalives_idle = 0                # TCP_KEEPIDLE, in seconds;
>                                         # 0 selects the system default
> #tcp_keepalives_interval = 0            # TCP_KEEPINTVL, in seconds;
>                                         # 0 selects the system default
> #tcp_keepalives_count = 0               # TCP_KEEPCNT;
>                                         # 0 selects the system default
> Should I change something here?

Check "listen_addresses" and "port" look OK. You're probably only
listening to localhost.

You can test by telnet-ing to port 5432 or using lsof / netstat to see
what connections you have open in that zone.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Steve Clark
Date:
Subject: Re: setting Postgres client
Next
From: Lennin Caro
Date:
Subject: Re: how to return the first record from the sorted records which may have duplicated value.