On Mon, 2026-03-16 at 14:56 +0100, Felix Hamme wrote:
> I'm tempted to use a restore_command which does cp for history files
> and mv for WAL files, to optimize performance and disk usage.
> An AI told me that a second restore attempt for the same WAL file
> could only happen if recovery is resumed after a crash.
Don't do that. Make the restore_command idempotent.
Trying to optimize for storage space often causes problems elsewhere.
Yours,
Laurenz Albe