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

Re: FATAL: bogus data in lock file "postmaster.pid": ""

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: FATAL: bogus data in lock file "postmaster.pid": ""
Date: 2012-01-05 22:19:54
Message-ID: 21846.1325801994@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Magnus Hagander <magnus(at)hagander(dot)net> writes:
> On Thu, Jan 5, 2012 at 17:13, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> I think link(2) would create race conditions of its own.  I'd be
>> inclined to suggest that maybe we should just special-case a zero length
>> postmaster.pid file as meaning "okay to proceed".  In general, garbage

> That's pretty much what I meant - but with a warning message.

Actually ... wait a minute.  If we allow that, don't we create a race
condition between two postmasters starting at almost the same instant?
The second one could see the lock file when the first has created but
not yet filled it.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2012-01-05 22:27:28
Subject: Re: Progress on fast path sorting, btree index creation time
Previous:From: Greg SmithDate: 2012-01-05 22:09:44
Subject: Re: our buffer replacement strategy is kind of lame

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