Re: pg_stat_replication.state: streaming/catchup

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Torsten Förtsch <torsten(dot)foertsch(at)gmx(dot)net>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_stat_replication.state: streaming/catchup
Date: 2014-04-21 11:18:36
Message-ID: CAB7nPqT1VO+YyP8Wk_JysBdYKuZOmV9Ydopd83N47y51rHFKKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Apr 21, 2014 at 8:03 PM, Torsten Förtsch
<torsten(dot)foertsch(at)gmx(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Torsten Förtsch 2014-04-21 11:34:54 Re: pg_stat_replication.state: streaming/catchup
Previous Message Torsten Förtsch 2014-04-21 11:03:47 pg_stat_replication.state: streaming/catchup