model-writtenrun 1307 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kirill Reshke proposed moving buffer unlocking and unpinning outside critical sections in GIN to follow the WAL-logging sequence documented in transam/README #1.
- Michael Paquier agreed that the proposed correction sounded right #2.
- Kirill Reshke then supplied inline changes for two additional instances in gistbuild() and log_newpage_range(), splitting the latter's LSN-setting and buffer-release loop around END_CRIT_SECTION() #3.
- Michael Paquier committed seven GIN changes from the attached patchset #1 and the inline log_newpage_range() change #3 as 21e323e941, excluding the proposed ginbuild() and gistbuild() changes because those cases do not involve WAL logging #4.
- In his final report, Michael Paquier described assertion-assisted checks that found a gistplacetopage() root-split case he considered acceptable and another ginHeapTupleFastInsert() release that could be improved; the selected changes had landed, while that additional improvement remained open #4.