Re: checkpoint reliability - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: checkpoint reliability
Date
Msg-id 3C2018AD.DF77D0CE@tpf.co.jp
Whole thread Raw
In response to checkpoint reliability  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: checkpoint reliability  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> 
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I was wondering, when we start to reuse a WAL file, do we know that all
> > dirty buffers modified in that WAL file have been flushed to disk?
> 
> Yes.  At least two checkpoints ago, in fact.

Isn't the following what Bruce asked ?

/**    mdsync() -- Sync storage.**/
int
mdsync()
{sync();if (IsUnderPostmaster)    sleep(2);sync();return SM_SUCCESS;
}

regards,
Hiroshi Inoue


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: checkpoint reliability
Next
From: Stephan Szabo
Date:
Subject: Re: problems with table corruption continued