Re: [HACKERS] pg_stat_archiver issue with aborted archiver

2015-06-08 Thread Michael Paquier
On Tue, Jun 9, 2015 at 4:23 AM, Fujii Masao wrote: > On Mon, Jun 8, 2015 at 5:17 PM, Julien Rouhaud > wrote: >> Le 08/06/2015 05:56, Michael Paquier a écrit : >>> On Sun, Jun 7, 2015 at 1:11 AM, Julien Rouhaud >>> wrote: I just noticed that if the archiver aborts (for instance if the a

Re: [HACKERS] pg_stat_archiver issue with aborted archiver

2015-06-08 Thread Fujii Masao
On Mon, Jun 8, 2015 at 5:17 PM, Julien Rouhaud wrote: > Le 08/06/2015 05:56, Michael Paquier a écrit : >> On Sun, Jun 7, 2015 at 1:11 AM, Julien Rouhaud >> wrote: >>> I just noticed that if the archiver aborts (for instance if the >>> archive_command exited with a return code > 127), >>> pg_stat_

Re: [HACKERS] pg_stat_archiver issue with aborted archiver

2015-06-08 Thread Julien Rouhaud
Le 08/06/2015 05:56, Michael Paquier a écrit : > On Sun, Jun 7, 2015 at 1:11 AM, Julien Rouhaud > wrote: >> 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 >>

Re: [HACKERS] pg_stat_archiver issue with aborted archiver

2015-06-07 Thread Michael Paquier
On Sun, Jun 7, 2015 at 1:11 AM, Julien Rouhaud wrote: > 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

[HACKERS] pg_stat_archiver issue with aborted archiver

2015-06-06 Thread Julien Rouhaud
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.