From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: pgsql-general@postgresql.org
Subject: Re: Monitoring PITR recovery progress
Date: Wed, 23 Jan 2019 10:58:04 -0800
Message-ID: <1548269884.9639.16.camel@lists.simkin.ca> (raw)
In-Reply-To: <CAF-QHFWZxk9aRkqYyKExeU_so=Ymq77VQRJ8WpSh1Rum7fpbyA@mail.gmail.com>
References: <CAF-QHFWZxk9aRkqYyKExeU_so=Ymq77VQRJ8WpSh1Rum7fpbyA@mail.gmail.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ahodgson@lists.simkin.ca
Subject: Re: Monitoring PITR recovery progress
In-Reply-To: <1548269884.9639.16.camel@lists.simkin.ca>
References: <CAF-QHFWZxk9aRkqYyKExeU_so=Ymq77VQRJ8WpSh1Rum7fpbyA@mail.gmail.com> <1548269884.9639.16.camel@lists.simkin.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox