Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
TABLE_Adatabase cluster
WAL segments
LSN_0
REDO point
shared buffer pool
© Copyright 2015 Suzuki Hironobu All Rights Reser...
TABLE_Adatabase cluster
WAL segments
TABLE_A
LSN_0
LSN_0
(1)
REDO point
shared buffer pool
Load TABLE_A's page
© Copyright...
TABLE_A
A
database cluster
WAL segments
A
TABLE_A
LSN_1
LSN_0
LSN_0 LSN_0
(1) (2)
COMMIT
REDO point
shared buffer pool
Rep...
TABLE_A
A
database cluster
WAL segments
A
TABLE_A
LSN_1
LSN_0
LSN_0 LSN_0 LSN_1
(1) (2)
COMMIT
REDO point
shared buffer po...
TABLE_A
A B A
database cluster
WAL segments
A B
TABLE_A
LSN_1 LSN_2
LSN_0
LSN_0 LSN_0 LSN_1 LSN_1 LSN_2
(1) (2) (3)
COMMIT...
Upcoming SlideShare
Loading in …5
×

Fig 9-03

1,060 views

Published on

Database recovery

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Fig 9-03

  1. 1. TABLE_Adatabase cluster WAL segments LSN_0 REDO point shared buffer pool © Copyright 2015 Suzuki Hironobu All Rights Reserved. See also http://www.interdb.jp/pg/pgsql09.html
  2. 2. TABLE_Adatabase cluster WAL segments TABLE_A LSN_0 LSN_0 (1) REDO point shared buffer pool Load TABLE_A's page © Copyright 2015 Suzuki Hironobu All Rights Reserved. See also http://www.interdb.jp/pg/pgsql09.html
  3. 3. TABLE_A A database cluster WAL segments A TABLE_A LSN_1 LSN_0 LSN_0 LSN_0 (1) (2) COMMIT REDO point shared buffer pool Replay the first XLOG record because TABLE_A's pd_lsn (LSN_0) < XLOG record's LSN(LSN_1) © Copyright 2015 Suzuki Hironobu All Rights Reserved. See also http://www.interdb.jp/pg/pgsql09.html
  4. 4. TABLE_A A database cluster WAL segments A TABLE_A LSN_1 LSN_0 LSN_0 LSN_0 LSN_1 (1) (2) COMMIT REDO point shared buffer pool Update TABLE_A's pd_lsn from LSN_0 to LSN_1 © Copyright 2015 Suzuki Hironobu All Rights Reserved. See also http://www.interdb.jp/pg/pgsql09.html
  5. 5. TABLE_A A B A database cluster WAL segments A B TABLE_A LSN_1 LSN_2 LSN_0 LSN_0 LSN_0 LSN_1 LSN_1 LSN_2 (1) (2) (3) COMMITCOMMIT REDO point shared buffer pool Replay the second XLOG record And Update TABLE_A's pd_lsn © Copyright 2015 Suzuki Hironobu All Rights Reserved. See also http://www.interdb.jp/pg/pgsql09.html

×