Re: archive_command / pg_stat_archiver & documentation

From: Benoit Lobréau <benoit(dot)lobreau(at)gmail(dot)com>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: archive_command / pg_stat_archiver & documentation
Date: 2021-03-01 09:24:06
Message-ID: CAPE8EZ5cqE4hP3HkUe=MqMdy548O2eDMqeK_jqoGcUK6eW2VjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I like the idea !

If it's not too complicated, I'd like to take a stab at it.

Le lun. 1 mars 2021 à 10:16, Julien Rouhaud <rjuju123(at)gmail(dot)com> a écrit :

> On Mon, Mar 1, 2021 at 4:33 PM Benoit Lobréau <benoit(dot)lobreau(at)gmail(dot)com>
> wrote:
> >
> > Le lun. 1 mars 2021 à 08:36, Michael Paquier <michael(at)paquier(dot)xyz> a
> écrit :
> >>
> >> On Fri, Feb 26, 2021 at 10:03:05AM +0100, Benoit Lobréau wrote:
> >> > Done here : https://commitfest.postgresql.org/32/3012/
> >>
> >> Documenting that properly for the archive command, as already done for
> >> restore_command, sounds good to me. I am not sure that there is much
> >> point in doing a cross-reference to the archiving section for one
> >> specific field of pg_stat_archiver.
> >
> >
> > I wanted to add a warning that using pg_stat_archiver to monitor the
> good health of the
> > archiver comes with a caveat in the view documentation itself. But
> couldn't find a concise
> > way to do it. So I added a link.
> >
> > If you think it's unnecessary, that's ok.
>
> Maybe this can be better addressed than with a link in the
> documentation. The final outcome is that it can be difficult to
> monitor the archiver state in such case. That's orthogonal to this
> patch but maybe we can add a new "archiver_start" timestamptz column
> in pg_stat_archiver, so monitoring tools can detect a problem if it's
> too far away from pg_postmaster_start_time() for instance?
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2021-03-01 09:33:24 Re: archive_command / pg_stat_archiver & documentation
Previous Message Julien Rouhaud 2021-03-01 09:17:06 Re: archive_command / pg_stat_archiver & documentation