Re: oldest xmin is far in the past: PG 11

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Ameen Abbas <abbas(dot)dba(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: oldest xmin is far in the past: PG 11
Date: 2020-01-22 10:33:33
Message-ID: 64f723e621f1f199441a1b9ee6d0c331926c1115.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, 2020-01-22 at 13:31 +0530, Ameen Abbas wrote:
> We are facing "oldest xmin is far in the past" in PostgreSQL 11 in logs, and we don't have
> any halted/aborted open transactions, and even no replication slots and no prepared transactions,
> we had ran vacuum verbose on the db multiple times still the below warning message not gone.

Ok, there are no prepared transactions and no replication slots.

Check for old transactions:

SELECT pid, age(current_timestamp, xact_start)
FROM pg_stat_activity
WHERE state <> 'idle';

Also, are there standby servers with "hot_standby_feedback = on"?
They might have a long running transaction as well.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message srikkanth 2020-01-22 11:00:45 SQL Query Syntax help
Previous Message Ameen Abbas 2020-01-22 08:01:29 oldest xmin is far in the past: PG 11