Re: Error: Found xmin xxxx from before relfrozenxid xxxx

From: "Carlos T(dot) Groero Carmona" <ctonetg(at)gmail(dot)com>
To: Lista PostgreSql <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Error: Found xmin xxxx from before relfrozenxid xxxx
Date: 2019-04-28 08:22:09
Message-ID: CABh6Tc1UtAQuSqML0mMmHMFK=Kdg7v3ZsEYLBAT82m4_H=bxMw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Leyendo un poco mas en este site:
https://lwn.net/Articles/757761/
encontre que la tabla que tiene problema es pg_database

template1=# vacuum ANALYZE pg_database;

ERROR: found xmin 1983002746 from before relfrozenxid 4007722125

Corriendo esta query

select xmin, * from pg_database;

Veo que el valor corresponde a template0,

template1=# select ctid, xmin, xmax, datname from pg_database ;

ctid | xmin | xmax | datname

--------+------------+------+------------------

(0,1) | 2 | 0 | db_ofx

(0,2) | 2 | 0 | db_aut

(0,3) | 2 | 0 | postgres

(0,4) | 2 | 0 | db_temp

(0,6) | 2 | 0 | db_production

(0,7) | 2 | 0 | db_local

(0,8) | 2 | 0 | db_backup

(0,9) | 2 | 0 | template1

(0,12) | 1983002746 | 0 | template0

On Sun, Apr 28, 2019 at 2:36 AM Carlos T. Groero Carmona <ctonetg(at)gmail(dot)com>
wrote:

> Hola Lista,
>
> Me disponia a relizar un vacuum freeze a mis base de datos de production
> como habia realizado en muchas ocaciones anteriores cuando me encuentro con
> este error.
>
> 2019-04-28 01:00:06 CDT [40459]:
> user=postgres,db=auth_db,app=vacuumdb,client=localhost.localdomain(52756),trans=0
> ERROR: XX001: found xmin 1982524657 from before relfrozenxid 4007722125
>
> 2019-04-28 01:00:06 CDT [40459]:
> user=postgres,db=auth_db,app=vacuumdb,client=localhost.localdomain(52756),trans=0
> LOCATION: heap_prepare_freeze_tuple, heapam.c:5783
>
> 2019-04-28 01:00:06 CDT [40459]:
> user=postgres,db=auth_db,app=vacuumdb,client=localhost.localdomain(52756),trans=0
> STATEMENT: VACUUM (FREEZE);
>
>
> Lo curioso es que puedo hacerle vacuum a una sola tabla pero si le trato
> de hacer a toda a base de datos se detiene, presumo cuando encuentra una
> tabla, que no le permite continuar.
>
>
> Alguna idea de que esta pasando?
>
>
> De ante mano mil gracias...
>

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2019-04-28 15:04:18 Re: Error: Found xmin xxxx from before relfrozenxid xxxx
Previous Message Carlos T. Groero Carmona 2019-04-28 07:36:53 Error: Found xmin xxxx from before relfrozenxid xxxx