Hello,
I just noticed that if the archiver aborts (for instance if the
archive_command exited with a return code > 127), pg_stat_archiver won't
report those failed attempts. This happens with both 9.4 and 9.5 branches.
Please find attached a patch that fix this issue, based on current head.
Regards.
--
Julien Rouhaud
http://dalibo.com - http://dalibo.org