From: Darron Harrison <darron@realtyserver.com>
To: Rui DeSousa <rui@crazybean.net>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Vacuum Issues
Date: Thu, 26 Mar 2020 12:01:36 -0700
Message-ID: <1711838a1a0.b8776dce198656.4553889266632620330@realtyserver.com> (raw)
In-Reply-To: <8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net>
References: <171180a0730.f301716f192269.5929166075824764633@realtyserver.com>
<8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net>
Unable to run the first query and third query. I believe it's a version issue, as we are running 9.2.4.
No results from select * from pg_prepared_xacts on any of the servers.
Darron
---- On Thu, 26 Mar 2020 11:50:10 -0700 Rui DeSousa <rui@crazybean.net> wrote ----
On Mar 26, 2020, at 2:10 PM, Darron Harrison <mailto: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;
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: darron@realtyserver.com, rui@crazybean.net
Subject: Re: Vacuum Issues
In-Reply-To: <1711838a1a0.b8776dce198656.4553889266632620330@realtyserver.com>
References: <171180a0730.f301716f192269.5929166075824764633@realtyserver.com> <8612E7A0-95FE-45DD-92BF-99FF68757BCF@crazybean.net> <1711838a1a0.b8776dce198656.4553889266632620330@realtyserver.com>
* 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