model-writtenrun 3498 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that inserting large tuples into a GiST index on a temporary table triggered an assertion failure across PostgreSQL versions starting with v12, and also noted errors with still larger tuples #1; Tender Wang reproduced the assertion failure #2.
- Heikki Linnakangas supplied a patch allowing an invalid memorized downlink offset after moving right, but questioned whether the parent's memorized LSN also needed updating to detect concurrent splits #3.
- Alexander Lakhin asked whether local-buffer exhaustion with larger tuples was expected #4; Tender Wang reported that increasing temp_buffers removed that error but exposed a stack-depth limit, suggesting resource exhaustion #5.
- Tender Wang initially found no apparent effect from updating the parent's LSN, while expressing uncertainty #6; returning months later, he confirmed that the patch worked, explained why retry_from_parent handled the concern, and requested an explanatory assertion comment #7.
- Tender Wang also identified a possible local-buffer misuse in BufferGetLSNAtomic and pointed to a fix in a separate thread; that issue was outside the attached assertion patch #7.
- Heikki Linnakangas committed the assertion fix as 7afca7edef, preserving the logic from #3 while expanding the comment and reordering equivalent conditions, with backports to supported branches, and announced completion #8.
- Alexander Lakhin closed the thread with thanks #9; the assertion fix had landed, while this thread recorded no further resolution of the separate buffer issue.