Skip site navigation (1) Skip section navigation (2)

Lock file conflict with multiple postmasters

From: Nicola Mauri <Nicola(dot)Mauri(at)saga(dot)it>
To: pgsql-admin(at)postgresql(dot)org
Subject: Lock file conflict with multiple postmasters
Date: 2007-04-17 16:26:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
We have two postmasters on the same host. They are configured to listen on 
port 5432 of two distinct IP addresses as follows:

  listen_addresses = ''
  port = 5432
  listen_addresses = ''
  port = 5432

However, if we start the second instance while the first one is running, 
we get the following error:
   FATAL:  could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission 

So, lock filename cares only about port number and nothing else.
In order to avoid this conflict, how can we configure the name of 
lockfiles or directory where they are placed?

Thanks in advance!


pgsql-admin by date

Next:From: Chuck AmadiDate: 2007-04-17 16:50:36
Subject: Is there any good helpful howtos and gotchas
Previous:From: Hajek, NickDate: 2007-04-17 15:27:42
Subject: Re: Is anyone running version 8.2.3 on SuSE 10.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group