pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rob Sargent <robjsargent@gmail.com>
Cc: bhargav kamineni <kbn98406@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: oldest xmin is far in the past :: BUT xmin is not available in system
Date: Tue, 19 Apr 2022 11:38:49 -0400
Message-ID: <2555588.1650382729@sss.pgh.pa.us> (raw)
In-Reply-To: <9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com>
References: <CAE=Y5eB0Szc_Fz5te6KaAQtay3XBvwSO=ruv5G0HYyHK_a3n6Q@mail.gmail.com>
	<CAKFQuwaQsMFvvuK=1GZfaA2Mw1oOcd7tMpyzCCKkD986fVCTGw@mail.gmail.com>
	<9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com>

Rob Sargent <robjsargent@gmail.com> writes:
> On 4/19/22 00:06, David G. Johnston wrote:
>> On Monday, April 18, 2022, bhargav kamineni <kbn98406@gmail.com> wrote:
>> It seems vacuum is behaving somewhat weird on postgres database ,
>> observing below HINTS on the vacuum logs
>> WARNING:  oldest xmin is far in the past

> This site has lots of useful queries for this sort of issue:
> https://www.shanelynn.ie/postgresql-find-slow-long-running-and-blocked-queries. 
> I think you're looking for a very old transaction that is probably not 
> going to finish, must be terminated.

Yeah, that.  Manual vacuuming isn't going to help until you get rid
of the old open transaction.  Look into pg_prepared_xacts and
pg_stat_activity.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <2555588.1650382729@sss.pgh.pa.us>
Permalink:  ../2555588.1650382729@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2555588.1650382729@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robjsargent@gmail.com, kbn98406@gmail.com
  Subject: Re: oldest xmin is far in the past :: BUT xmin is not available in system
  In-Reply-To: <2555588.1650382729@sss.pgh.pa.us>
  References: <CAE=Y5eB0Szc_Fz5te6KaAQtay3XBvwSO=ruv5G0HYyHK_a3n6Q@mail.gmail.com> <CAKFQuwaQsMFvvuK=1GZfaA2Mw1oOcd7tMpyzCCKkD986fVCTGw@mail.gmail.com> <9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com> <2555588.1650382729@sss.pgh.pa.us>

* 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