Re: Cannot Start Postgres After System Boot

From: "Reid Thompson" <Reid(dot)Thompson(at)ateb(dot)com>
To: <rshepard(at)appl-ecosys(dot)com>
Cc: "Reid Thompson" <Reid(dot)Thompson(at)ateb(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cannot Start Postgres After System Boot
Date: 2010-10-21 18:52:11
Message-ID: 7C0800F63CCF4149AC0FC5EE2A041226D52326@sr002-2k3exc.ateb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2010-10-21 at 11:38 -0700, Rich Shepard wrote:
> On Thu, 21 Oct 2010, Reid Thompson wrote:
>
> > what does
> > $ netstat -an |grep 5432
> > return?
> >
> > something is running on tcp port 5432
>
> Doesn't show that.
>
> [rshepard(at)salmo ~]$ netstat -an |grep 5432
> tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN

The above line means that something is listening on TCP port 5432.
You do NOT have a listener on unix socket port 5432.
EX: my box has both

$ netstat -an|grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 413260 /var/run/postgresql/.s.PGSQL.5432

If I telnet to
$ telnet localhost 5432

and run
$ netstat -an|grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:56771 127.0.0.1:5432 ESTABLISHED
tcp 0 0 127.0.0.1:5432 127.0.0.1:56771 ESTABLISHED
unix 2 [ ACC ] STREAM LISTENING 413260 /var/run/postgresql/.s.PGSQL.5432
rthompso(at)raker>~

the established connection is shown
and lsof shows
$ lsof -i TCP:5432
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
telnet 22648 rthompso 3u IPv4 445992 0t0 TCP raker.ateb.com:56771->raker.ateb.com:postgresql (ESTABLISHED)
rthompso(at)raker>~
$

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Reid Thompson 2010-10-21 18:54:41 Re: Cannot Start Postgres After System Boot
Previous Message DM 2010-10-21 18:51:05 Re: Question on Explain : Index Scan