Re: Concurrency bug in amcheck - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Concurrency bug in amcheck
Date
Msg-id 20200422155700.vvpdks2fzucwcsd3@alap3.anarazel.de
Whole thread Raw
In response to Re: Concurrency bug in amcheck  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
List pgsql-hackers
Hi,

Peter, Just thought you might want to see this one...

On 2020-04-21 15:31:13 +0300, Alexander Korotkov wrote:
> On Tue, Apr 21, 2020 at 12:54 PM Alexander Korotkov
> <a.korotkov@postgrespro.ru> wrote:
> > I found concurrency bug in amcheck running on replica.  When
> > btree_xlog_unlink_page() replays changes to replica, deleted page is
> > left with no items.  But if amcheck steps on such deleted page
> > palloc_btree_page() expects it would have items.
> 
> I forgot to mention that I've reproduced it on master.  Quick check
> shows bug should exist since 11.

- Andres



pgsql-hackers by date:

Previous
From: Juan José Santamaría Flecha
Date:
Subject: Re: PG compilation error with Visual Studio 2015/2017/2019
Next
From: Erik Rijkers
Date:
Subject: Re: PATCH: logical_work_mem and logical streaming of largein-progress transactions