]> granicus.if.org Git - postgresql/commit
Fix bufmgr so CHECKPOINT_END_OF_RECOVERY behaves as a shutdown checkpoint.
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 16 Sep 2012 18:55:27 +0000 (19:55 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 16 Sep 2012 18:55:27 +0000 (19:55 +0100)
commit25560fdeb26f75b50793a56f69f64daab4ad586e
treee7d1b68a4d78ba0e3389aeb20663f14fb365a522
parent5752e1bbb2d9f553fd6211fbb47ab2b240d740f0
Fix bufmgr so CHECKPOINT_END_OF_RECOVERY behaves as a shutdown checkpoint.
Recovery code documents clearly that a shutdown checkpoint is executed at
end of recovery - a shutdown checkpoint WAL record is written but the buffer
manager had been altered to treat end of recovery as a normal checkpoint.
This bug exacerbates the bufmgr relpersistence bug.

Bug spotted by Andres Freund, patch by me.
src/backend/storage/buffer/bufmgr.c