Re: Monitoring PITR recovery progress

From: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Monitoring PITR recovery progress
Date: 2019-01-23 18:58:04
Message-ID: 1548269884.9639.16.camel@lists.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2019-01-23 at 18:58 +0100, Ivan Voras wrote:
> And, the actual question: how to monitor the WAL replay process?
> Currently, the recovery.conf file is sitting there, with the database
> running, but pg processes are idle, and pg_stat_activity doesn't list
> anything which appears to be related to the recovery process.
>
>
>

The server logs each wal segment that gets processed during recovery.
And you would definitely see a busy high-I/IO process applying the
recovery.
It also logs when the recovery is complete. And I'm pretty sure it
renames recovery.conf to recovery.done or something when it's done.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jerry Sievers 2019-01-23 19:36:56 Re: Reclaiming space for dropped database
Previous Message Ivan Voras 2019-01-23 17:58:54 Monitoring PITR recovery progress