pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Michael Schanne <michael.schanne@gmail.com>
Cc: Michael Lewis <mlewis@entrata.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: MultiXactId wraparound and last aggressive vacuum time
Date: Tue, 6 Apr 2021 18:01:09 +0200
Message-ID: <20210406180109.4a87a9a7@firost> (raw)
In-Reply-To: <CAC_kJhQkzAgmDNjLaPoUAjfQhe8spJimiqKbBseQhSqsRV5aUA@mail.gmail.com>
References: <CAC_kJhQ5160qoKQQkFORDuRvEOge=7S5aLX600bF4c7kFtraAg@mail.gmail.com>
	<CAHOFxGpjc7hVHi4tjK5bDP87FS+6SKAP2=dG72H6iywVB3abSQ@mail.gmail.com>
	<CAC_kJhQkzAgmDNjLaPoUAjfQhe8spJimiqKbBseQhSqsRV5aUA@mail.gmail.com>

On Mon, 5 Apr 2021 17:28:06 -0400
Michael Schanne <michael.schanne@gmail.com> wrote:

> After a closer reading of the documentation, it appears the database should
> stop accepting new transactions before a wraparound would ever occur.  If
> so, then the only possible explanations for this multixactid wraparound
> error would be data corruption, or a bug in postgresql.  The exact version
> I'm using is 9.6.10, which is quite a few versions behind the latest
> (9.6.21), but I skimmed through the release notes of the later versions and
> did not see any bugfixes in this area.  That would leave data corruption as
> the only explanation.  Is my reasoning correct here?

I didn't checked the changelog, and you should definitely run 9.6.21, but I
believe your reasoning is correct anyway. A bug might be possible, but I would
bet a coin on the corruption.

You might want to compare this number with the value reported by: 

  pg_controldata $PGDATA|grep NextMultiXactId

Backup your cluster, then, try to isolate the table(s) and block(s) where the
corruption occurs and check at them using eg. pageinspect.

> I'm willing to upgrade but I would need to justify it somehow, so if I am
> missing something please let me know.

you can justify the upgrade using this load of reasons:
https://why-upgrade.depesz.com/show?from=9.6.10&to=9.6.21

Regards,





view thread (4+ messages)

Message-ID: <20210406180109.4a87a9a7@firost>
Permalink:  ../20210406180109.4a87a9a7@firost/
Also on:    postgresql.org/message-id/20210406180109.4a87a9a7@firost

 · 

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: jgdr@dalibo.com, michael.schanne@gmail.com, mlewis@entrata.com
  Subject: Re: MultiXactId wraparound and last aggressive vacuum time
  In-Reply-To: <20210406180109.4a87a9a7@firost>
  References: <CAC_kJhQ5160qoKQQkFORDuRvEOge=7S5aLX600bF4c7kFtraAg@mail.gmail.com> <CAHOFxGpjc7hVHi4tjK5bDP87FS+6SKAP2=dG72H6iywVB3abSQ@mail.gmail.com> <CAC_kJhQkzAgmDNjLaPoUAjfQhe8spJimiqKbBseQhSqsRV5aUA@mail.gmail.com> <20210406180109.4a87a9a7@firost>

* 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