Re: Error on vacuum: xmin before relfrozenxid - Mailing list pgsql-general

From Paolo Crosato
Subject Re: Error on vacuum: xmin before relfrozenxid
Date
Msg-id CAKMFJuffEmarjLJY+8GQVXH=F=EWgxX=VgcYtub6_BG-Wfq4Zw@mail.gmail.com
Whole thread Raw
In response to Re: Error on vacuum: xmin before relfrozenxid  (Andres Freund <andres@anarazel.de>)
List pgsql-general


2018-05-23 1:39 GMT+02:00 Andres Freund <andres@anarazel.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

pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: PostgreSQL backup issue
Next
From: "a"
Date:
Subject: How do I copy an element of composite type array into csv file?