Re: Error on vacuum: xmin before relfrozenxid

From: Paolo Crosato <paolo(dot)crosato(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Error on vacuum: xmin before relfrozenxid
Date: 2018-05-23 07:39:54
Message-ID: CAKMFJuffEmarjLJY+8GQVXH=F=EWgxX=VgcYtub6_BG-Wfq4Zw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

2018-05-23 1:39 GMT+02:00 Andres Freund <andres(at)anarazel(dot)de>:

> Hi,
>
> On 2018-05-23 00:04:26 +0200, Paolo Crosato wrote:
> > I managed to recover the log of the first time we run into the issue, the
> > error was the same but on template1:
> >
> > May 8 11:26:46 xxx postgres[32543]: [1154-1] user=,db=,client= ERROR:
> > found xmin 2600758304 from before relfrozenxid 400011439
> > May 8 11:26:46 xxx postgres[32543]: [1154-2] user=,db=,client= CONTEXT:
> > automatic vacuum of table "template1.pg_catalog.pg_authid"
>
> pg_authid (along with a few other tables) is shared between
> databases. So that's just hte same error. At which rate are you
> creating / updating database users / roles?
>

Once or twice a month. Yesterday I updated some rows on the table with a

update pg_auth_id set rolname=rolname where rolname=...

for some users in the hope to work around the issue, but it didn't work.
That's why there are recent xmin on some rows.

Best Regards,

Paolo Crosato

In response to

Browse pgsql-general by date

  From Date Subject
Next Message a 2018-05-23 08:35:44 How do I copy an element of composite type array into csv file?
Previous Message Michael Paquier 2018-05-23 05:47:38 Re: PostgreSQL backup issue

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2018-05-23 07:49:29 Re: pgAdmin4 Docker behind load balancer
Previous Message Kyotaro HORIGUCHI 2018-05-23 07:39:37 Re: A Japanese-unfriendy error message contruction