Re: ERROR: found multixact from before relminmxid

From: Andres Freund <andres(at)anarazel(dot)de>
To: Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>,Alexandre Arruda <adaldeia(at)gmail(dot)com>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>,Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>,pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: ERROR: found multixact from before relminmxid
Date: 2018-04-11 06:55:56
Message-ID: 9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On April 10, 2018 11:51:40 PM PDT, Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com> wrote:
>On Wed, Apr 11, 2018 at 8:31 AM, Alexandre Arruda <adaldeia(at)gmail(dot)com>
>wrote:
>
>> 2018-04-10 19:09 GMT-03:00 Peter Geoghegan <pg(at)bowt(dot)ie>:
>> > On Tue, Apr 10, 2018 at 4:31 AM, Alexandre Arruda
><adaldeia(at)gmail(dot)com>
>> wrote:
>> >> Actualy, I first notice the problem in logs by autovacuum:
>> >>
>> >> 2018-04-10 08:22:15.385 -03 [55477] CONTEXT: automatic vacuum of
>> >> table "production.public.fn06t"
>> >> 2018-04-10 08:22:16.815 -03 [55477] ERROR: found multixact
>68834765
>> >> from before relminmxid 73262006
>> >>
>> >> production=# vacuum analyze verbose fn06t;
>> >> INFO: vacuuming "public.fn06t"
>> >> ERROR: found multixact 76440919 from before relminmxid 122128619
>> >
>> > Do you think that CLUSTER was run before regular VACUUM/autovacuum
>> > showed this error, though?
>>
>> Yes, because the table is clustered in the old database and
>> reclustered when it was reloaded in the version 10.
>> But the table was not clustered again.
>>
>>
>I wonder if we're staring at some race condition in visibility map
>where a
>previous vacuum inadvertently skips a page because the visibility map
>bit
>is set, thus leaving behind an unfrozen multixid. The page then again
>becomes !all_visible and the next vacuum then complains about the
>unfrozen
>multixid.

Should be possible to write a query using page inspect and freespacemap to make sure they at least currently match.

Andres

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rene Romero Benavides 2018-04-11 07:00:30 Re: dblink: give search_path
Previous Message Pavan Deolasee 2018-04-11 06:51:40 Re: ERROR: found multixact from before relminmxid