Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> Would it make sense to throw an error if there's a recovery.conf and
> files already exist in pg_xlog?
No; that's actually a feature in some scenarios (eg, your last few
segments didn't get archived yet).
There's no substitute for debugging your archiver script ;-)
regards, tom lane