PostgreSQL Backup & Recovery
Understand archive_mode values in PostgreSQL and how they affect WAL archiving behavior on primaries and standbys.
Configuration parameter to enable WAL archiving. Values: off | on | always (for standbys).
archive_mode enables WAL archiving behavior in PostgreSQL and works together with archive_command.
Common values are off, on, and always. The right setting depends on topology and how you handle failover and standby behavior.
Most production setups start with archive_mode=on on the primary. More advanced topologies may use always with careful deduplication and operational policy.
Choose settings based on failover strategy, operational ownership, and retention consistency requirements.