The documentation here: https://www.postgresql.org/docs/11/continuous-archiving. html States:> It is advisable to test your proposed archive command to ensure that it indeed does not overwrite an existing file, and that it returns nonzero status in this case.Why exactly is this?
Newer doc versions also say:
This is an important safety feature to preserve the integrity of your archive in case of administrator error (such as sending the output of two different servers to the same archive directory).
David J.