Thread: pgsql: Revert "Avoid creating archive status ".ready" files too early"

pgsql: Revert "Avoid creating archive status ".ready" files too early"

From
Alvaro Herrera
Date:
Revert "Avoid creating archive status ".ready" files too early"

This reverts commit 515e3d84a0b5 and equivalent commits in back
branches.  This solution to the problem has a number of problems, so
we'll try again with a different approach.

Per note from Andres Freund

Discussion: https://postgr.es/m/20210831042949.52eqp5xwbxgrfank@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/96b665083eb72570e226cf2d25c960b3acc62040

Modified Files
--------------
src/backend/access/transam/timeline.c    |   2 +-
src/backend/access/transam/xlog.c        | 220 ++-----------------------------
src/backend/access/transam/xlogarchive.c |  17 +--
src/backend/postmaster/walwriter.c       |   7 -
src/backend/replication/walreceiver.c    |   6 +-
src/include/access/xlog.h                |   1 -
src/include/access/xlogarchive.h         |   4 +-
src/include/access/xlogdefs.h            |   1 -
8 files changed, 24 insertions(+), 234 deletions(-)