I put "remove"
on quotes because
log checkpointing will
remove log recordslogically:
We will write a
LOG CHECK POINTlog record into
the log file
Some log recordsbefore this
LOG CHECK POINTrecord
will not be examined
in the recovery procedure
See next item
of discussion
Comment on log checkpointing
2 ways to
deleterecords from a
log file:
Physically:
The
log records are
actuallydeleted
from
the log file
Logically:
The log file is
marked with a
special"check point" record
Some portion
of the log file
will be discarded (= ignored
when we use it in recovery
In practice,
all log records are
kept for the
purpose of:
accounting !!!
(Especially in banking transactions !!!)
Log checkpointing
in practice:
A specialcheck point (log) record is
written into
the log file
Recovery operations will
mostly use the
portion of the
log file that is
writtenafter the
check point record
(I wrote "mostly use"
because
you will see later that we will
also need to
use a
(small) portion of the
log filebefore the
CHCK POINT record in
recovery)