]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix bufmgr so CHECKPOINT_END_OF_RECOVERY behaves as a shutdown checkpoint.
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 16 Sep 2012 18:54:34 +0000 (19:54 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 16 Sep 2012 18:54:34 +0000 (19:54 +0100)
commit9c855045809362f2cdabc110afd6ab8a4b250507
treeb3e5bc735e252f02b07df88e7839f15d1b54aba2
parentfa41f294f6c93af78e08b3cbb976586a6804c8f4
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