Re: Duplicated LSN in ReorderBuffer
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Ildar Musin <ildar@adjust.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-07-08T00:59:26Z
Lists: pgsql-hackers
On Wed, Jun 26, 2019 at 2:46 AM Ildar Musin <ildar@adjust.com> wrote: > Attached is a simple patch that uses subxid instead of top-level xid > in ReorderBufferAddNewTupleCids() call. It seems to fix the bug, but > i'm not sure that this is a valid change. Can someone please verify it > or maybe suggest a better solution for the issue? Hello Ildar, I hope someone more familiar with this code than me can comment, but while going through the Commitfest CI results I saw this segfault with your patch: https://travis-ci.org/postgresql-cfbot/postgresql/builds/555184304 At a glance, HistoricSnapshotGetTupleCids() returned NULL in HeapTupleSatisfiesHistoricMVCC(), so ResolveCminCmaxDuringDecoding() blew up. -- Thomas Munro https://enterprisedb.com
Commits
-
logical decoding: process ASSIGNMENT during snapshot build
- e8c7f40a1f8a 9.4.25 landed
- bac2fae05c77 13.0 landed
- ae4305f6d303 9.6.16 landed
- 96b5033e1171 12.0 landed
- 7110f5c37721 9.5.20 landed
- 4f7dbf0ef50b 10.11 landed
- 41f3d262693b 11.6 landed
-
Ability to advance replication slots
- 9c7d06d60680 11.0 cited