Hi hackers, While reviewing Jan's patch [1], I found that a standby can write pages newer than its minRecoveryPoint.
A crashed primary restarted with standby.signal starts with an invalid minRecoveryPoint. If the checkpointer sees that during crash recovery, it clears updateMinRecoveryPoint for good. After the switch to archive recovery, its restartpoints no longer move minRecoveryPoint. This can happen since 7ff23c6d277. The attached patch clears the flag only in the startup process, and adds a TAP test. [1] https://postgr.es/m/[email protected] Thanks, Shihao
v1-0001-Keep-advancing-minRecoveryPoint-after-crash-recov.patch
Description: Binary data
