pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Pavan Deolasee <pavan.deolasee@gmail.com>
To: Alexandre Arruda <adaldeia@gmail.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ERROR: found multixact from before relminmxid
Date: Tue, 10 Apr 2018 23:55:56 -0700
Message-ID: <9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de> (raw)
In-Reply-To: <CABOikdMUVc5xEZhKO=jdpyYEzkX_=n2+S1CJDrr9yPVni3hR2Q@mail.gmail.com>
References: <CAGewt-ujGpMLQ09gXcUFMZaZsGJC98VXHEFbF-tpPB0fB13K+A@mail.gmail.com>
	<CAGewt-vbYMCp8jnp02CXH77ipHoe0DBO5AmKkDM-F8h2vN5RQQ@mail.gmail.com>
	<0a057777-206e-b7d8-c078-4ca58678c6fd@2ndquadrant.com>
	<CAGewt-uWB1f4dhr+ub9S3Fk2u1bbGzSXc9AhFZyPe+EEzKqRSQ@mail.gmail.com>
	<71793e11-d5cf-81a6-a8a7-60743e39a51c@2ndquadrant.com>
	<CAH2-WznEitpnqh32LTwaEtuo54J-k3owtJ8nrnwvRK=aDoNfqA@mail.gmail.com>
	<CAGewt-tM2nNpes8DwhtmmfPzMe6cPDdon9ysTYr6WOtZoGwNyw@mail.gmail.com>
	<CAH2-Wzn2gm3J=r5vxhCaFBiUgqbZ=tmv57-U-AUZdkepW7PL9A@mail.gmail.com>
	<CAGewt-usb3YJkf0N1H2D9Yq+fiPEawfw3e_6mQ21VLVi2S6R_g@mail.gmail.com>
	<CAH2-Wzn=Y3aY_2F21EWGYPonBjzMHb18wN_HND51hSD3BKGXdQ@mail.gmail.com>
	<CAGewt-vHjahxELOoSrBdEdSeaa=jPUHWzwW_e=evyN2XbdT61g@mail.gmail.com>
	<CAH2-WzmQ1cQviL=LD9HoSw3gD+5EPQLmh7fjUTCQxkDHoGSaRg@mail.gmail.com>
	<CAGewt-sPiQxJpROdL7xOB0-VqSf31qQ0c69aoKm-ZbHQBrkXMw@mail.gmail.com>
	<CABOikdMUVc5xEZhKO=jdpyYEzkX_=n2+S1CJDrr9yPVni3hR2Q@mail.gmail.com>



On April 10, 2018 11:51:40 PM PDT, Pavan Deolasee <pavan.deolasee@gmail.com> wrote:
>On Wed, Apr 11, 2018 at 8:31 AM, Alexandre Arruda <adaldeia@gmail.com>
>wrote:
>
>> 2018-04-10 19:09 GMT-03:00 Peter Geoghegan <pg@bowt.ie>:
>> > On Tue, Apr 10, 2018 at 4:31 AM, Alexandre Arruda
><adaldeia@gmail.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.




view thread (36+ messages)  latest in thread

Message-ID: <9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de>
Permalink:  ../9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de/
Also on:    postgresql.org/message-id/9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de

 · 

reply

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: andres@anarazel.de, pavan.deolasee@gmail.com, adaldeia@gmail.com, pg@bowt.ie, tomas.vondra@2ndquadrant.com
  Subject: Re: ERROR: found multixact from before relminmxid
  In-Reply-To: <9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de>
  References: <CAGewt-ujGpMLQ09gXcUFMZaZsGJC98VXHEFbF-tpPB0fB13K+A@mail.gmail.com> <0a057777-206e-b7d8-c078-4ca58678c6fd@2ndquadrant.com> <CAGewt-uWB1f4dhr+ub9S3Fk2u1bbGzSXc9AhFZyPe+EEzKqRSQ@mail.gmail.com> <71793e11-d5cf-81a6-a8a7-60743e39a51c@2ndquadrant.com> <CAH2-WznEitpnqh32LTwaEtuo54J-k3owtJ8nrnwvRK=aDoNfqA@mail.gmail.com> <CAGewt-tM2nNpes8DwhtmmfPzMe6cPDdon9ysTYr6WOtZoGwNyw@mail.gmail.com> <CAH2-Wzn2gm3J=r5vxhCaFBiUgqbZ=tmv57-U-AUZdkepW7PL9A@mail.gmail.com> <CAGewt-usb3YJkf0N1H2D9Yq+fiPEawfw3e_6mQ21VLVi2S6R_g@mail.gmail.com> <CAH2-Wzn=Y3aY_2F21EWGYPonBjzMHb18wN_HND51hSD3BKGXdQ@mail.gmail.com> <CAGewt-vHjahxELOoSrBdEdSeaa=jPUHWzwW_e=evyN2XbdT61g@mail.gmail.com> <CAH2-WzmQ1cQviL=LD9HoSw3gD+5EPQLmh7fjUTCQxkDHoGSaRg@mail.gmail.com> <CAGewt-sPiQxJpROdL7xOB0-VqSf31qQ0c69aoKm-ZbHQBrkXMw@mail.gmail.com> <CABOikdMUVc5xEZhKO=jdpyYEzkX_=n2+S1CJDrr9yPVni3hR2Q@mail.gmail.com> <9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de>

* 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