Re: Problem starting PG-9.2 on non-default port

From: Birta Levente <blevi(dot)linux(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem starting PG-9.2 on non-default port
Date: 2012-12-14 14:50:55
Message-ID: 50CB3CCF.2070207@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 14/12/2012 16:37, Devrim Gündüz wrote:
> Hi,
>
> Is this an RPM installation? If so, you also need to change the port in
> the init script, too.

Or if it's rhel/centos/sciencific like linux, you can specify in
/etc/sysconfig/pgsql/postgresql-9.2:
PGPORT=5433

>
> Regards, Devrim
>
> "James B. Byrne" <byrnejb(at)harte-lyne(dot)ca> wrote:
>
> I wish to run an instance of PG-9.2 concurrently with our production
> version (9.1). I have changed the listening port number.
>
> listen_addresses = 'pgsql-dbms.hamilton.harte-lyne.ca <http://pgsql-dbms.hamilton.harte-lyne.ca>, localhost'
> #port = 5432 # (change requires restart)
> port = 5433
>
> However, I am getting this error when I try to start the new version
> while the old one is still running. Is there something else I must do
> to accomplish this? Why is the lock file using the default port
> number for this instance?
>
> cat ../pgstartup.log
> 2012-12-14 09:13:41 EST : LOG: XX000: could not bind IPv4 socket:
> Address already in use
> 2012-12-14 09:13:41 EST : HINT: Is another postmaster already
> running on port 5432? If not, wait a few seconds and retry.
> 2012-12-14 09:13:41 EST :
> LOCATION: StreamServerPort, pqcomm.c:438
> 2012-12-14 09:13:41 EST : WARNING: 01000: could not create listen
> socket for "pgsql-dbms.hamilton.harte-lyne.ca <http://pgsql-dbms.hamilton.harte-lyne.ca>"
> 2012-12-14 09:13:41 EST : LOCATION: PostmasterMain, postmaster.c:892
> 2012-12-14 09:13:41 EST : FATAL: F0001: lock file
> "/tmp/.s.PGSQL.5432.lock" already exists
> 2012-12-14 09:13:41 EST : HINT: Is another postmaster (PID 1299)
> using socket file "/tmp/.s.PGSQL.5432"?
> 2012-12-14 09:13:41 EST : LOCATION: CreateLockFile, miscinit.c:822
>
>
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-12-14 14:52:03 Re: Problem starting PG-9.2 on non-default port
Previous Message Christian Hammers 2012-12-14 14:49:42 Re: Monitoring streaming replication from standby on Windows