pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: molofeev <molofeev3@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15142: ERROR: MultiXactId nnnnn has not been created yet -- apparent wraparound in v9.5
Date: Wed, 04 Apr 2018 17:14:26 +0100
Message-ID: <87woxnj75g.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <20180404155016.ylskrkq4toczkk3u@alvherre.pgsql>
References: <20180404155016.ylskrkq4toczkk3u@alvherre.pgsql>

>>>>> "Alvaro" == Alvaro Herrera <alvherre@alvh.no-ip.org> writes:

 >> Query 1:  select * from heap_page_items(get_raw_page('tablename',3220145));

 Alvaro> In this one, t_infomask is 11011 for all the tuples, which is
 Alvaro> 0x2B03. HEAP_XMAX_IS_MULTI is 0x1000. I think you're looking at
 Alvaro> the wrong pages, probably because of synchronized_seqscans.

3220145 appears to be a valid page (it's the one with the last
selectable row in the last slot). It's 3220146 which looks corrupt, but
it's corrupt in such a way that heap_page_items doesn't report anything
interesting because all the lp_len fields are 16.

My working hypothesis is that page 3220146 has actually been overwritten
by a page from some index, which is why it looks like valid (but too
short) items. The multixact error occurs because pg is reading garbage
from the xid and infomask fields since those don't exist in index
tuples.

-- 
Andrew (irc:RhodiumToad)




view thread (26+ messages)  latest in thread

Message-ID: <87woxnj75g.fsf@news-spur.riddles.org.uk>
Permalink:  ../87woxnj75g.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87woxnj75g.fsf@news-spur.riddles.org.uk

 · 

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-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, alvherre@alvh.no-ip.org, molofeev3@gmail.com, tomas.vondra@2ndquadrant.com
  Subject: Re: BUG #15142: ERROR: MultiXactId nnnnn has not been created yet -- apparent wraparound in v9.5
  In-Reply-To: <87woxnj75g.fsf@news-spur.riddles.org.uk>
  References: <20180404155016.ylskrkq4toczkk3u@alvherre.pgsql> <87woxnj75g.fsf@news-spur.riddles.org.uk>

* 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