Re: postmaster, but not pg_ctl -i -i

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: aagha(at)bigfoot(dot)com
Cc: PostgreSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: postmaster, but not pg_ctl -i -i
Date: 2002-11-14 14:04:17
Message-ID: 29850.1037282657@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Aurangzeb M. Agha" <aagha(at)bigfoot(dot)com> writes:
> $ pg_ctl start -D . -o -i
> postmaster successfully started
> FATAL: StreamServerPort: bind() failed: Address already in use
> Is another postmaster already running on port 5432?
> If not, wait a few seconds and retry.
> /usr/local/pgsql/bin/postmaster: cannot create INET stream port

> BUT, if I do:

> $ postmaster -D . -o -i -p 5432

These are not the same command: in particular -o means completely
different things. I expect that

$ postmaster -D . -i -p 5432

(which is what pg_ctl will do) will fail.

You may be able to find what process is using TCP port 5432 by using
netstat or lsof or some such tool.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Williams, Travis L, NPONS 2002-11-14 15:14:44 Re: 1600 Column limit..
Previous Message Tino Wildenhain 2002-11-14 13:43:49 Re: 1600 Column limit..