Diagnostic step 1
Do NOT delete WAL files manually while replicas may need them. Check pg_stat_replication and pg_stat_archiver to identify minimal required WAL.
Generated Oct 21, 2026, 9:46:27 AM
Do NOT delete WAL files manually while replicas may need them. Check pg_stat_replication and pg_stat_archiver to identify minimal required WAL.
Fix archive_command (restore correct S3 credentials / permissions) so existing WAL segments can be archived; confirm by observing successful archive entries in wal-e logs.
If replicas cannot be reconnected or are obsolete, take a fresh base backup of primary and reinitialize standbys; only then you can safely remove older WAL segments.
If immediate disk relief needed, copy WAL segments to external storage (tar up pg_wal) and mount that archive as temporary offline safe store before pruning locally — but only after ensuring no standby relies on them.
Document the sequence and automate archive validity checks; consider increasing archive throughput or offsite capacity to avoid reoccurrence.