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.92) (envelope-from ) id 1jHXaA-00061t-S3 for pgsql-admin@arkaria.postgresql.org; Thu, 26 Mar 2020 18:50:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHXa9-0002bv-Ly for pgsql-admin@arkaria.postgresql.org; Thu, 26 Mar 2020 18:50:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHXa9-0002bn-Ch for pgsql-admin@lists.postgresql.org; Thu, 26 Mar 2020 18:50:21 +0000 Received: from impout008aa.msg.chrl.nc.charter.net ([47.43.20.32] helo=impout008.msg.chrl.nc.charter.net) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jHXa6-00020A-OU for pgsql-admin@lists.postgresql.org; Thu, 26 Mar 2020 18:50:20 +0000 Received: from cerberus.crazybean.net ([24.151.69.73]) by cmsmtp with ESMTP id HXa3j82tscx2eHXa3jM9W7; Thu, 26 Mar 2020 18:50:15 +0000 Authentication-Results: crazybean.net; none X-Authority-Analysis: v=2.3 cv=efOJgIMH c=1 sm=1 tr=0 a=YXTuGtgWN9YX+aIhe8tYuA==:117 a=YXTuGtgWN9YX+aIhe8tYuA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=xqWC_Br6kY4A:10 a=SS2py6AdgQ4A:10 a=0jFAOcL7AAAA:8 a=LwmS4Go0E_KOfKE5B2QA:9 a=CjuIK1q_8ugA:10 a=GCSLoLs73Sj-OQfbpjkA:9 a=G_-jliHxtBBvF13j:21 a=_W_S_7VecoQA:10 a=K48GPUIhKHzPTnLCTHz5:22 Received: from [IPv6:2001:470:e117:4:154:e85e:7412:3762] ( [2001:470:e117:4:154:e85e:7412:3762]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id 497f9584 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 26 Mar 2020 14:50:14 -0400 (EDT) From: Rui DeSousa Message-Id: <8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_12BB1C69-9417-491E-A3A5-46DCE247811F" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: Vacuum Issues Date: Thu, 26 Mar 2020 14:50:10 -0400 In-Reply-To: <171180a0730.f301716f192269.5929166075824764633@realtyserver.com> Cc: pgsql-admin To: Darron Harrison References: <171180a0730.f301716f192269.5929166075824764633@realtyserver.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-CMAE-Envelope: MS4wfFiSrLypFIoP6GjxKL+phquR3wXS6kSnqFAEa4UMRYXSk6kaRrdzRS5njZgLxTg0dlxYoJSlRxdoiFelAVtmWzI7ivLeqEuv4E9yv2G+3JXA0tlBItW8 gWrQw4E8p9JdEDujfxlcoaeGZbM0u1EwnWZ5DshHSwgAYEW2Zm28Fkl00/fKEictrIjRsdWjmPfEHk2y3XJbv1swkJbGUqEDN+EZMil6sUjnNHGXcF13Y97/ List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_12BB1C69-9417-491E-A3A5-46DCE247811F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Mar 26, 2020, at 2:10 PM, Darron Harrison = wrote: >=20 >=20 > Anyone have any thoughts on what we should be checking next? >=20 Check the backend_xmin in pg_stat_activity; is the holdup in one of = replicas or on the master?=20 select pid , usename , client_addr , state , backend_type , backend_xid , backend_xmin from pg_stat_activity where backend_xmin is not null order by age(backend_xmin) desc limit 10 ; Two-phase transactions: select * from pg_prepared_xacts; Replication slots:=20 select * from pg_replication_slots; --Apple-Mail=_12BB1C69-9417-491E-A3A5-46DCE247811F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Mar 26, 2020, at 2:10 PM, Darron Harrison <darron@realtyserver.com> wrote:


Anyone have any thoughts on what we = should be checking next?


Check the backend_xmin in pg_stat_activity; = is the holdup in one of replicas or on the master? 

select pid
 , = usename
 , client_addr
 , = state
 , backend_type
 , = backend_xid
 , backend_xmin
from = pg_stat_activity
where backend_xmin is not = null
order by age(backend_xmin) desc
limit = 10
;

Two-phase = transactions:

select * from = pg_prepared_xacts;

Replication = slots: 

select * from = pg_replication_slots;

= --Apple-Mail=_12BB1C69-9417-491E-A3A5-46DCE247811F--