EnterpriseDB / barman

Barman - Backup and Recovery Manager for PostgreSQL
https://www.pgbarman.org/
GNU General Public License v3.0
2.14k stars 193 forks source link

When recovering with `--no-get-wal` and `--target-lsn`, bring only the WALs up to the specified LSN #952

Closed barthisrael closed 4 months ago

barthisrael commented 4 months ago

Previous to this PR, when the user specified --target-lsn and --no-get-wal in barman recover command, Barman was copying all WAL files from Barman to Postgres.

As we are able to infere the required WAL files based on the specified --target-lsn, this PR changes Barman so it copies only the required WAL files instead of them all.

Notes:

References: BAR-190.