Re: pg_stat_replication.state: streaming/catchup - Mailing list pgsql-general

From Michael Paquier
Subject Re: pg_stat_replication.state: streaming/catchup
Date
Msg-id CAB7nPqT1VO+YyP8Wk_JysBdYKuZOmV9Ydopd83N47y51rHFKKQ@mail.gmail.com
Whole thread Raw
In response to pg_stat_replication.state: streaming/catchup  (Torsten Förtsch <torsten.foertsch@gmx.net>)
Responses Re: pg_stat_replication.state: streaming/catchup  (Torsten Förtsch <torsten.foertsch@gmx.net>)
List pgsql-general



On Mon, Apr 21, 2014 at 8:03 PM, Torsten Förtsch <torsten.foertsch@gmx.net> wrote:
Hi,

just out of curiosity, what's the difference between "streaming" and
"catchup" state in pg_stat_replication.

According to the documentation this field is "Current WAL sender state".
But that does not tell me anything.
When a standby connects for the first time to a primary, it is not yet synchronized, this is the "catchup" phase. Once the lag between the standby and the master is reduced to zero for the first time, replication state changes to "streaming".
--
Michael

pgsql-general by date:

Previous
From: Torsten Förtsch
Date:
Subject: pg_stat_replication.state: streaming/catchup
Next
From: Torsten Förtsch
Date:
Subject: Re: pg_stat_replication.state: streaming/catchup