Hello,
The attached trivial patch fixes the initialization of the fake unlogged LSN. Currently, BootstrapXLOG() in initdb
setsthe initial fake unlogged LSN to FirstNormalUnloggedLSN (=1000), but the recovery and pg_resetwal sets it to 1.
Thepatch modifies the latter two cases to match initdb.
I don't know if this do actual harm, because the description of FirstNormalUnloggedLSN doesn't give me any idea.
Regards
Takayuki Tsunakawa