pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Johannes Graƫn <johannes@selfnet.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: found xmin x from before relfrozenxid y
Date: Sun, 21 Oct 2018 23:04:26 -0400
Message-ID: <82489.1540177466@sss.pgh.pa.us> (raw)
In-Reply-To: <20181022010105.v4wzvjhpqhmlz2zu@alap3.anarazel.de>
References: <0662ea90-5249-4b8d-faa3-4abe4c88135a@selfnet.de>
	<3266.1540131856@sss.pgh.pa.us>
	<20181022010105.v4wzvjhpqhmlz2zu@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2018-10-21 10:24:16 -0400, Tom Lane wrote:
>> (Well, I see the short answer: the code layer throwing the error
>> doesn't know.  But that could be fixed easily enough.)

> I wonder if the better approach wouldn't be to add an errcontext for
> vaccuum, where continually update the block number etc. Theres plenty of
> different sources of corruption that'd potentially cause debug messages
> or errors, and that should get most of them.

I did not chase this in detail, but it looked to me like there were
two code paths leading to heap_prepare_freeze_tuple, and only one
of them came from VACUUM.  So adding a Relation parameter seemed like
a more promising fix for it.  But possibly there are more error messages
we need to worry about besides this.

			regards, tom lane




view thread (5+ messages)

Message-ID: <82489.1540177466@sss.pgh.pa.us>
Permalink:  ../82489.1540177466@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/82489.1540177466@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, andres@anarazel.de, johannes@selfnet.de, pgsql-hackers@lists.postgresql.org
  Subject: Re: found xmin x from before relfrozenxid y
  In-Reply-To: <82489.1540177466@sss.pgh.pa.us>
  References: <0662ea90-5249-4b8d-faa3-4abe4c88135a@selfnet.de> <3266.1540131856@sss.pgh.pa.us> <20181022010105.v4wzvjhpqhmlz2zu@alap3.anarazel.de> <82489.1540177466@sss.pgh.pa.us>

* 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