Re:BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead - Mailing list pgsql-bugs

From feichanghong
Subject Re:BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead
Date
Msg-id tencent_C4D907A5093C071A029712E73B43C6512706@qq.com
Whole thread Raw
In response to BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead
List pgsql-bugs
> We have analyzed the cause of the problem: The value of
> IndexScanDesc->xactStartedInRecovery is a key condition for determining
> whether an index item can be marked as DEAD. And it depends on
> CurrentTransactionState->startedInRecovery. However, PushTransaction does
> not assign a value to startedInRecovery when modifying
> CurrentTransactionState.
The attached patch has been verified to resolve the mentioned issue.
Attachment

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead
Next
From: Dean Rasheed
Date:
Subject: Re: BUG #18238: Cross-partitition MERGE/UPDATE with delete-preventing trigger leads to incorrect memory access