Re: changing the /tmp/ lock file?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ben <bench(at)silentmedia(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: changing the /tmp/ lock file?
Date: 2007-06-13 18:29:45
Message-ID: 15081.1181759385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben <bench(at)silentmedia(dot)com> writes:
> I'm trying to impliment an automatic failover system, and am running into
> the problem that when I try to start multiple postgres clusters on the
> same box, postgres will not start if /tmp/.s.PGSQL.5432.lock exists. Can I
> change the file it's looking for via an option? Nothing seemed obvious
> from a quick review of the docs, short of (presumably) changing the port
> number, which I don't want to do.

That lock file exists specifically to keep you from doing that (ie,
having more than one postmaster listening on the same port). Trying
to defeat the lock is not a good idea.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2007-06-13 18:31:11 Re: changing the /tmp/ lock file?
Previous Message Karen Springer 2007-06-13 18:24:04 recursive function