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

From Alexander Korotkov
Subject Re: Concurrency bug in amcheck
Date
Msg-id CAPpHfdtQo-=9rrcNW1cJR=2MYcCtu1Fj2JQ9AyZ_zh4xQuK8Xg@mail.gmail.com
Whole thread Raw
In response to Concurrency bug in amcheck  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Responses Re: Concurrency bug in amcheck  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
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.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: PG compilation error with Visual Studio 2015/2017/2019
Next
From: Juan José Santamaría Flecha
Date:
Subject: Re: PG compilation error with Visual Studio 2015/2017/2019