Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMTDf-00076H-Cg for pgsql-admin@arkaria.postgresql.org; Tue, 13 Nov 2018 07:34:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMTDb-00025L-CB for pgsql-admin@arkaria.postgresql.org; Tue, 13 Nov 2018 07:34:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMTDb-00024e-0f for pgsql-admin@lists.postgresql.org; Tue, 13 Nov 2018 07:34:39 +0000 Received: from mtaout004-public.msg.strl.va.charter.net ([68.114.190.29]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMTDX-00053x-IP for pgsql-admin@postgresql.org; Tue, 13 Nov 2018 07:34:37 +0000 Received: from impout002 ([68.114.189.17]) by mtaout004.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20181113073434.WXZY3685.mtaout004.msg.strl.va.charter.net@impout002>; Tue, 13 Nov 2018 01:34:34 -0600 Received: from cerberus.crazybean.net ([24.151.10.150]) by impout002 with charter.net id zKaa1y0023EE3TL01Kaaz7; Tue, 13 Nov 2018 01:34:34 -0600 X-Authority-Analysis: v=2.2 cv=C6eZ8UH+ c=1 sm=1 tr=0 a=D2HTw/M6/8MmcHighGO7rg==:117 a=D2HTw/M6/8MmcHighGO7rg==:17 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=JHtHm7312UAA:10 a=pGLkceISAAAA:8 a=C7c-1btIi8SmootIj-UA:9 a=8YhX5sTI0uf2Z_ZH:21 a=H24ctooemnnDzC3y:21 a=CjuIK1q_8ugA:10 Received: from [IPv6:2001:470:e117:4:acd9:2240:fca3:ee7b] (2001:470:e117:4:acd9:2240:fca3:ee7b [IPv6:2001:470:e117:4:acd9:2240:fca3:ee7b]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id caf06ce9 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 12 Nov 2018 23:47:54 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: hot_standby_feedback parameter doesn't work From: Rui DeSousa In-Reply-To: Date: Mon, 12 Nov 2018 23:47:53 -0500 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net> References: To: Andrey Zhidenkov X-Mailer: Apple Mail (2.3445.101.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Nov 12, 2018, at 10:28 PM, Andrey Zhidenkov = wrote: >=20 > 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. >=20 > vacuum_defer_cleanup_age =3D 0. PostgreSQL version is 9.5.13. Cluster > load is about 1500 transactions per second. >=20 > Any ideas? >=20 > - > With the best regards, Andrey Zhidenkov >=20 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.=