From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: Maxim Boguk <maxim.boguk@gmail.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Jeremy Finzel <finzelj@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: found xmin from before relfrozenxid on pg_catalog.pg_authid
Date: Thu, 24 May 2018 17:13:11 -0400
Message-ID: <20180524211311.tnswfnjwnii54htx@alvherre.pgsql> (raw)
In-Reply-To: <20180524205820.quhhnn3n2ag5yryb@alap3.anarazel.de>
On 2018-May-24, Andres Freund wrote:
> On 2018-05-24 16:49:40 -0400, Alvaro Herrera wrote:
> > BTW is it just a coincidence or are all the affected tables pg_authid?
> > Maybe the problem is shared relations ..? Maybe the fact that they have
> > separate relfrozenxid (!?) in different databases?
>
> Yes, that appears to be part of the problem. I've looked at a number of
> shared relation related codepaths, but so far my theory is that the
> relcache is wrong. Note that one of the reports in this thread clearly
> had a different relcache relfrozenxid than in the catalog.
Hmm ... is that because they read the values on different databases?
Are you referring to the reports by Maxim Boguk? I see one value from
template1, another value from template0.
> Then there's also:
> http://archives.postgresql.org/message-id/1527193504642.36340%40amazon.com
ah, so deleting the relcache file makes the problem to go away? That's
definitely pretty strange. I see no reason for the value in relcache to
become out of step with the catalogued value in the same database ... I
don't think we transmit in any way values of one database to another.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@2ndquadrant.com, andres@anarazel.de, maxim.boguk@gmail.com, pg@bowt.ie, finzelj@gmail.com
Subject: Re: found xmin from before relfrozenxid on pg_catalog.pg_authid
In-Reply-To: <20180524211311.tnswfnjwnii54htx@alvherre.pgsql>
References: <20180524205820.quhhnn3n2ag5yryb@alap3.anarazel.de> <20180524211311.tnswfnjwnii54htx@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox