Re: Concurrency bug in amcheck

From: Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Concurrency bug in amcheck
Date: 2020-04-21 12:31:13
Message-ID: CAPpHfdtQo-=9rrcNW1cJR=2MYcCtu1Fj2JQ9AyZ_zh4xQuK8Xg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Apr 21, 2020 at 12:54 PM Alexander Korotkov
<a(dot)korotkov(at)postgrespro(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Juan José Santamaría Flecha 2020-04-21 12:49:41 Re: PG compilation error with Visual Studio 2015/2017/2019
Previous Message Ranier Vilela 2020-04-21 12:20:31 Re: PG compilation error with Visual Studio 2015/2017/2019