> On Dec 7, 2020, at 7:02 AM, Paul Förster <paul.foerster@xxxxxxxxx> wrote: > > in my understanding, this is only true if you don't use replication slots. If you use replication slots then the primary should know when a WAL file is no longer needed and abandoned or ready to be recycled. I don't think OP is talking about the WAL files PG is managing; I think he's talking about WAL files copied into an archive directory.