]> 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:53:34 +0000 (19:53 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 16 Sep 2012 18:53:34 +0000 (19:53 +0100)
commit64e196b6efbd58893a4381013a35c84b167b4856
tree40c94f8cd016a3a6cd0b71719d668abd99b431e7
parent327542645e698a4c85dde8229c21361f96688808
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