pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
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 15:53:12 -0700
Message-ID: <20180410225312.wwr77tq7fjym4ecs@alap3.anarazel.de> (raw)
In-Reply-To: <CAGewt-vHjahxELOoSrBdEdSeaa=jPUHWzwW_e=evyN2XbdT61g@mail.gmail.com>
References: <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>

On 2018-04-10 08:31:20 -0300, Alexandre Arruda wrote:
> 2018-04-09 23:51 GMT-03:00 Peter Geoghegan <pg@bowt.ie>:
> > On Mon, Apr 9, 2018 at 6:56 PM, Alexandre Arruda <adaldeia@gmail.com> wrote:
> >> (... and all other indexes returns null too)
> >>
> >> I tried with bt_index_check too. Same results.
> >
> > That's interesting, because it tells me that you have a table that
> > appears to not be corrupt, despite the CLUSTER error. Also, the error
> > itself comes from sanity checking added to MultiXact freezing fairly
> > recently, in commit 699bf7d0.
> >
> > You didn't say anything about regular VACUUM being broken. Do you find
> > that it works without any apparent issue?
> >
> > I have a suspicion that this could be a subtle bug in
> > CLUSTER/freezing. The only heap_freeze_tuple() caller is code used by
> > CLUSTER, so it's not that hard to imagine a MultiXact freezing bug
> > that is peculiar to CLUSTER. Though I haven't thought about it in much
> > detail.
> >
> > --
> > Peter Geoghegan
> 
> Hi Peter,
> 
> 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

What does the function in
https://www.postgresql.org/message-id/20180319181723.ugaf7hfkluqyos5d@alap3.anarazel.de
say about your table?

Could you post pg_controldata output and
SELECT * FROM pg_class WHERE oid = 'public.fn06t'::regclass;
?

Greetings,

Andres Freund




view thread (36+ messages)  latest in thread

Message-ID: <20180410225312.wwr77tq7fjym4ecs@alap3.anarazel.de>
Permalink:  ../20180410225312.wwr77tq7fjym4ecs@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180410225312.wwr77tq7fjym4ecs@alap3.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, adaldeia@gmail.com, pg@bowt.ie, tomas.vondra@2ndquadrant.com
  Subject: Re: ERROR: found multixact from before relminmxid
  In-Reply-To: <20180410225312.wwr77tq7fjym4ecs@alap3.anarazel.de>
  References: <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> <20180410225312.wwr77tq7fjym4ecs@alap3.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