Re: newbie question - Mailing list pgsql-admin

From Henry House
Subject Re: newbie question
Date
Msg-id 20010710185025.A10435@houseag.com
Whole thread Raw
In response to newbie question  (Xue-Feng Yang <just4look@yahoo.com>)
List pgsql-admin
On Tue, Jul 10, 2001 at 08:26:56PM -0400, Xue-Feng Yang wrote:
> Can anyone help me on the following problem?
>
> $psql -h localhost
>
> psql: PQconnectPoll() -- connect() failed: Connection
> refused
>         Is the postmaster running (with -i) at
> 'localhost'
>         and accepting connections on TCP/IP port '5432'?

1. Is the postmaster process running? Check using 'ps'.

2. Is the postmaster not listening on TCP? Check using 'netstat -lnp'.
Example of what you should see:

 tcp        0      0 0.0.0.0:5432            0.0.0.0:*               LISTEN 31693/postmaster
 unix  0      [ ACC ]     STREAM     LISTENING     68763  31693/postmaster /var/run/postgresql/.s.PGSQL.5432


--
Henry House
OpenPGP key available from http://romana.hajhouse.org/hajhouse.asc

Attachment

pgsql-admin by date:

Previous
From: Grant
Date:
Subject: Re: newbie question
Next
From: Xue-Feng Yang
Date:
Subject: Re: newbie question