From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: checkpoint reliability |
Date: | 2001-12-19 04:34:36 |
Message-ID: | 200112190434.fBJ4YaI22597@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Tom Lane wrote:
> >
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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;
> }
Oh, yes. That is it. I couldn't find out how we were sure our pages
that we had written to the kernel were actually on disk before we
started reusing the WAL files.
Thanks.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | mlw | 2001-12-19 04:48:32 | Re: Thoughts on the location of configuration files, how about this: |
Previous Message | Hiroshi Inoue | 2001-12-19 04:33:49 | Re: checkpoint reliability |