From: | Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: oldest xmin is far in the past |
Date: | 2016-03-18 21:28:15 |
Message-ID: | 7e8e222d-de3a-d489-5636-4e2d01a876b9@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On 03/18/2016 09:42 AM, John Snow wrote:
> Hi everyone!
>
> Trying to make VACUUM FREEZE on PG instance and keep getting this error:
>
> 2016-03-18 05:56:51 UTC 46750 WARNING: oldest xmin is far in the past
> 2016-03-18 05:56:51 UTC 46750 HINT: Close open transactions soon to
> avoid wraparound problems.
> 2016-03-18 05:56:51 UTC 46750 DEBUG: transaction ID wrap limit is
> 2654342112, limited by database with OID 1
> 2016-03-18 05:56:51 UTC 46750 DEBUG: MultiXactId wrap limit is
> 2147483648, limited by database with OID 12451
>
> Also "age" and "relfrozenxid" doesnt't change.
That probably means there's an old transaction somewhere - either a
regular one (check pg_stat_activity) or a prepared one (pg_prepared_xacts).
The meaning of "old" depends on autovacuum_freeze_max_age - what value
is set in the session running the VACUUM FREEZE?
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Artur Zakirov | 2016-03-18 22:18:37 | Re: Fuzzy substring searching with the pg_trgm extension |
Previous Message | Alvaro Herrera | 2016-03-18 20:53:43 | Re: Parallel Aggregate |