pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: 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 00:56:23 -0600
Message-ID: <9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com> (raw)
In-Reply-To: <CAKFQuwaQsMFvvuK=1GZfaA2Mw1oOcd7tMpyzCCKkD986fVCTGw@mail.gmail.com>
References: <CAE=Y5eB0Szc_Fz5te6KaAQtay3XBvwSO=ruv5G0HYyHK_a3n6Q@mail.gmail.com>
	<CAKFQuwaQsMFvvuK=1GZfaA2Mw1oOcd7tMpyzCCKkD986fVCTGw@mail.gmail.com>

On 4/19/22 00:06, David G. Johnston wrote:
>
>
> On Monday, April 18, 2022, bhargav kamineni <kbn98406@gmail.com> wrote:
>
>     Hi Team,
>
>     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
>
>     HINT:  Close open transactions soon to avoid wraparound problems.
>
>     You might also need to commit or roll back old prepared
>     transactions, or drop stale replication slots.
>
>
> What version?
>
> What other databases are present?
>
> Others can give better (more detailed/nuanced) guidance but if you can 
> just start vacuuming every table in every database manually, you 
> probably should just do that.  Vacuum freeze specifically.
>
> David J.
>
|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.

|

view thread (6+ messages)  latest in thread

Message-ID: <9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com>
Permalink:  ../9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com/
Also on:    postgresql.org/message-id/9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com

 · 

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: robjsargent@gmail.com
  Subject: Re: oldest xmin is far in the past :: BUT xmin is not available in system
  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>

* 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