Archive file 000000010000000000000002 is lost but WAL segment files is continuous. Recovery with archive (i.e. PITR) stops at the end of 000000010000000000000001.
Will it not archive 000000010000000000000002 eventually, like at the conclusion of the next restartpoint? or does it get recycled/removed without ever being archived? Or does it just hang out forever in pg_wal?
How to reproduce: - Set up replication (primary and standby). - Set [archive_mode = always] in standby. - WAL receiver exits (i.e. because primary goes down) after receiver inserts the last record in some WAL segment file before receiver notifies the segement file to archiver(create .ready file).
Do you have a trick for reliably achieving this last step?