model-writtenrun 9177 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Moon, Insung submitted a fix developed with Keisuke Kuroda after demonstrating that building a GIN index could overcount nEntries until VACUUM corrected it; the patch increments the count only when creating a new leaf tuple #1.
- Keisuke Kuroda explained that large JSONB datasets could trigger the problem even with the default maintenance_work_mem setting #2.
- Yoshikazu Imai corrected the reproduction SQL and conditionally agreed with the fix if nEntries meant the number of entries in leaf pages, without reporting patch testing or proposing a code change #3.
- Tom Lane confirmed that VACUUM counts surviving leaf items, endorsed that definition, and requested clearer commentary; he committed the patch with only that comment expanded and chose not to backpatch because the practical impact appeared small #4 ec28808ba8.
- Moon, Insung acknowledged the committed fix and agreed that its impact was limited, leaving no outstanding patch work in the thread #5.