Re: WAL & SHM principles - Mailing list pgsql-hackers

From Kevin T. Manley \(Home\)
Subject Re: WAL & SHM principles
Date
Msg-id 986a4v$2u6l$1@news.tht.net
Whole thread Raw
In response to RE: WAL & SHM principles  ("Mikheev, Vadim" <vmikheev@SECTORBASE.COM>)
List pgsql-hackers
""Mikheev, Vadim"" <vmikheev@SECTORBASE.COM> wrote in message
news:8F4C99C66D04D4118F580090272A7A234D32FA@sectorbase1.sectorbase.com...
> > It is possible to build a logging system so that you mostly don't care
> > when the data blocks get written; a particular data block on disk is
> > considered garbage until the next checkpoint, so that you
>
> How to know if a particular data page was modified if there is no
> log record for that modification?
> (Ie how to know where is garbage? -:))
>

You could store a log sequence number in the data page header that indicates
the log address of the last log record that was applied to the page. This is
described in Bernstein and Newcomer's book (sec 8.5 operation logging).
Sorry if I'm misunderstanding the question. Back to lurking mode...







pgsql-hackers by date:

Previous
From: Kovacs Zoltan
Date:
Subject: Re: pg_dump writes SEQUENCEs twice with -a
Next
From: Denis Perchine
Date:
Subject: Re: Performance monitor