pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rui DeSousa <rui@crazybean.net>
To: Andrey Zhidenkov <andrey.zhidenkov@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: hot_standby_feedback parameter doesn't work
Date: Mon, 12 Nov 2018 23:47:53 -0500
Message-ID: <06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net> (raw)
In-Reply-To: <CAJw4d1Vnw+BFVuSnSne8APg+e1cD0p4RVOtdqpf3pEVaSgb3Cw@mail.gmail.com>
References: <CAJw4d1Vnw+BFVuSnSne8APg+e1cD0p4RVOtdqpf3pEVaSgb3Cw@mail.gmail.com>



> On Nov 12, 2018, at 10:28 PM, Andrey Zhidenkov <andrey.zhidenkov@gmail.com> wrote:
> 
> We have a few database clusters (1 master, 2 hot standbys) with
> hot_standby_feedback setting on. But I am constantly seeing query
> conflicts on standbys because dead rows on the masters are deleted by
> VACUUM. Usually I notice it shortly after VACUUM ends, because the
> replication lag on replicas is starting to increase.
> 
> vacuum_defer_cleanup_age = 0. PostgreSQL version is 9.5.13. Cluster
> load is about 1500 transactions per second.
> 
> Any ideas?
> 
> -
> With the best regards, Andrey Zhidenkov
> 

Are these streaming replicas?  The wal_streaming process on the master should show the xmin of the replicas; you can check the value from pg_stat_activity to make sure the feedback is occurring.

Are the replicas disconnecting from the replication stream? As the would mean the xmin from the replica would no longer be in play.



view thread (9+ messages)  latest in thread

Message-ID: <06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net>
Permalink:  ../06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net/
Also on:    postgresql.org/message-id/06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net

 · 

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 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-admin@postgresql.org
  Cc: rui@crazybean.net, andrey.zhidenkov@gmail.com
  Subject: Re: hot_standby_feedback parameter doesn't work
  In-Reply-To: <06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net>
  References: <CAJw4d1Vnw+BFVuSnSne8APg+e1cD0p4RVOtdqpf3pEVaSgb3Cw@mail.gmail.com> <06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net>

* 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