pg_stat_archiver issue with aborted archiver

From: Julien Rouhaud <julien(dot)rouhaud(at)dalibo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_stat_archiver issue with aborted archiver
Date: 2015-06-06 16:11:36
Message-ID: 55731BB8.1050605@dalibo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
fix_archiver.patch text/x-patch 834 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2015-06-06 16:33:23 Re: [CORE] Restore-reliability mode
Previous Message Sehrope Sarkuni 2015-06-06 15:58:27 Re: [CORE] Restore-reliability mode