Re: 'Invalid lp' during heap_xlog_delete

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Daniel Wood <hexexpert(at)comcast(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 'Invalid lp' during heap_xlog_delete
Date: 2019-11-11 07:51:11
Message-ID: 20191111075111.GB1418@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 08, 2019 at 06:44:08PM -0800, Daniel Wood wrote:
> I repro'ed on PG11 and PG10 STABLE but several months old.
> I looked at 6d05086 but it doesn't address the core issue.
>
> DropRelFileNodeBuffers prevents the checkpoint from writing all
> needed dirty pages for any REDO's that exist BEFORE the truncate.
> If we crash after a checkpoint but before the physical truncate then
> the REDO will need to replay the operation against the dirty page
> that the Drop invalidated.

I am beginning to look at this thread more seriously, and I'd like to
first try to reproduce that by myself. Could you share the steps you
used to do that? This includes any manual sleep calls you may have
added, the timing of the crash, manual checkpoints, debugger
breakpoints, etc. It may be possible to extract some more generic
test from that.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2019-11-11 07:59:08 Re: adding partitioned tables to publications
Previous Message Dilip Kumar 2019-11-11 07:35:22 Re: [HACKERS] Block level parallel vacuum