Fix bufmgr so CHECKPOINT_END_OF_RECOVERY behaves as a shutdown checkpoint.

Simon Riggs <simon@2ndQuadrant.com>

Commit: 25560fdeb26f75b50793a56f69f64daab4ad586e
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2012-09-16T18:55:27Z
Releases: 9.1.6
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.

Files

PathChange+/−
src/backend/storage/buffer/bufmgr.c modified +2 −2