Re: BUG #18055: logical decoding core on AllocateSnapshotBuilder()
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: ocean_li_996@163.com, pgsql-bugs@lists.postgresql.org
Date: 2023-08-17T03:24:29Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix uninitialized access to InitialRunningXacts during decoding after ERROR.
- c7256e6564fa 15.5 landed
- f7d25117ba87 14.10 landed
- c570bb4d61b6 13.13 landed
- 7e57208ed51a 12.17 landed
- feb4e218e5f9 11.22 landed
On Mon, Aug 14, 2023 at 11:06 PM PG Bug reporting form <noreply@postgresql.org> wrote: > > Using of NInitialRunningXacts and InitialRunningXacts are clear. Currently, > the core, as far as i know, maybe caused by this way: an ERROR raised when > calling *pg_logical_slot_get_changes_guts* function. The code part of > PG_CATCH() doses not reset NInitialRunningXacts and InitialRunningXacts. > Then, calling pg_logical_slot_get_changes_guts again, the core may occur. > Unfortunately, I couldn't find a minimal reproduction case. However, I > observed an *ERROR: canceling statement due to statement timeout* logged > before each core occurred. (For some reason, I can't provide the information > of log) > Thanks for the report. I think your analysis is correct and I see that you have proposed a patch in the next email. I'll look into it and share my feedback. -- With Regards, Amit Kapila.