model-writtenrun 3863 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Janes reported intermittent buffer ownership errors during concurrent inserts into a GIN-indexed JSONB column on PostgreSQL 14.9 and 16.1, supplying a reproducer in #1.
- Junwang Zhao reproduced the failure on an earlier revision but suggested that recent ResourceOwner changes might have fixed master in #2.
- Tom Lane reproduced the ownership error on current development code and described an assertion failure from an older build, initially wondering whether there were two bugs in #3.
- Tom Lane traced both symptoms to ginFindParents() incorrectly releasing the root page pin, supplied a fix in #4, and explained that intervening buffer-manager changes merely altered how the same bug surfaced; he also raised unresolved concerns about regression coverage for concurrent GIN splits.
- Tom Lane committed #4 as 5c62ecf6ec with a behavior-preserving refactoring and an additional comment, and the fix was backported to all supported branches; the supplied thread ends with the patch proposal and leaves improved concurrency testing open.