pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rui DeSousa <rui@crazybean.net>
To: Darron Harrison <darron@realtyserver.com>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Vacuum Issues
Date: Thu, 26 Mar 2020 14:50:10 -0400
Message-ID: <8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net> (raw)
In-Reply-To: <171180a0730.f301716f192269.5929166075824764633@realtyserver.com>
References: <171180a0730.f301716f192269.5929166075824764633@realtyserver.com>



> 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;

view thread (16+ messages)  latest in thread

Message-ID: <8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net>
Permalink:  ../8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net/
Also on:    postgresql.org/message-id/8612E7A0-95FE-45DD-92BF-99FF68757BCF@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, darron@realtyserver.com
  Subject: Re: Vacuum Issues
  In-Reply-To: <8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net>
  References: <171180a0730.f301716f192269.5929166075824764633@realtyserver.com> <8612E7A0-95FE-45DD-92BF-99FF68757BCF@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