pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Phil Frost <phil@postmates.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Replica lag, high read IO, vacuum index scanning bug?
Date: Thu, 24 Nov 2016 16:51:29 -0300
Message-ID: <20161124195129.uuunjnwb4qz4k4bc@alvherre.pgsql> (raw)
In-Reply-To: <3fe69397-9feb-707a-032f-968a8d48ad0f@postmates.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Phil Frost wrote:
> We are seeing an issue on RDS 9.4.5 where replica lag gets really high.
> This lag seems to be correlated to a saturation of disk read throughput,
> and vacuums of one of our larger and more frequently updated tables.
> 
> I've heard that there's a bug where the replica will scan indexes
> unnecessarily when doing the WAL replay when the vacuums happen. Can
> anyone confirm this and maybe point me towards the commit where it was
> fixed? Has there been a backport to the 9.4 series?

Hi Phil,

The 9.4 backport of the patch in question is this commit by yours truly:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=30e3cb307d494990cb38cebff6bfc8b4c...

This will appear in the next minor release of the 9.4 series (as well as
9.5), due out sometime during February 2017.

Thanks,

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)

Message-ID: <20161124195129.uuunjnwb4qz4k4bc@alvherre.pgsql>
Permalink:  ../20161124195129.uuunjnwb4qz4k4bc@alvherre.pgsql/
Also on:    postgresql.org/message-id/20161124195129.uuunjnwb4qz4k4bc@alvherre.pgsql

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: alvherre@2ndquadrant.com, phil@postmates.com
  Subject: Re: Replica lag, high read IO, vacuum index scanning bug?
  In-Reply-To: <20161124195129.uuunjnwb4qz4k4bc@alvherre.pgsql>

* 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