Re: Replication failed after stalling - Mailing list pgsql-general

From Joe Van Dyk
Subject Re: Replication failed after stalling
Date
Msg-id CACfv+pJAxqps8MEgA5D7P78uSjO5XuL7uPXFqOq+SHBgKCA=JQ@mail.gmail.com
Whole thread Raw
In response to Re: Replication failed after stalling  (Sergey Konoplev <gray.ru@gmail.com>)
Responses Re: Replication failed after stalling  (Sergey Konoplev <gray.ru@gmail.com>)
Re: Replication failed after stalling  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-general
On Wed, Dec 18, 2013 at 3:39 PM, Sergey Konoplev <gray.ru@gmail.com> wrote:
On Wed, Dec 18, 2013 at 11:26 AM, Joe Van Dyk <joe@tanga.com> wrote:
> I'm running Postgresql 9.3. I have a streaming replication server. Someone
> was running a long COPY query (8 hours) on the standby which halted
> replication. The replication stopped at 3:30 am. I canceled the long-running
> query at 9:30 am and replication data started catching up.

What do you mean by "COPY on the standby halted replication"?

If I run "COPY (select * from complicate_view) to stdout" on the standby, I've noticed that sometimes halts replication updates to the slave.

For example, that's happening right now and "now() - pg_last_xact_replay_timestamp()" is 22 minutes. There's many transactions per second being committed on the master. Once that query is canceled, the slave catches up immediately.

Joe

pgsql-general by date:

Previous
From: Shiv Sharma
Date:
Subject: Re: Do all Postgres queries touch Shared_Buffers at some point?
Next
From: Sergey Konoplev
Date:
Subject: Re: Replication failed after stalling