Add recovery test for missing redo segment with backup_label

This commit adds a test case for early startup where a backup_label file
uses a checkpoint LSN and a redo LSN located in two different segments,
where the segment of the redo LSN is missing.  This code has never been
covered, and is complex enough that a test case is going to be useful in
the long-term.

Nitin has proposed a more complex approach than what is added by this
commit, by forcing a reuse of the injection points to produce a split
between redo and checkpoint.  This commit relies on the checkpoint and
redo LSNs generated by the first steps of the test, combined with a
generated backup_label, making the whole cheaper.

Author: Nitin Jadhav <[email protected]>
Author: Michael Paquier <[email protected]>
Discussion: 
https://postgr.es/m/CAMm1aWZ9Tv=Wrx52_2Ppw+6ULf_twRZuQm=zwla_a-kxwyk...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8f71f64deee6747ad9dea18819018b25424d61e5

Modified Files
--------------
src/test/recovery/t/050_redo_segment_missing.pl | 44 +++++++++++++++++++++++++
1 file changed, 44 insertions(+)

Reply via email to