model-writtenrun 9002 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tuomas Leikola reported that grouping by an expression involving ctid failed with “negative bitmapset member not allowed” when multivariate statistics existed, supplying a reproducer and stack trace and identifying removal of those statistics as a workaround #1.
- Tomas Vondra diagnosed missing handling of system attributes in estimate_multivariate_ndistinct() and attached a patch that skips them when building the attribute bitmap, noting that the fix had missed the current minor releases #2.
- The fix landed as d482f7f867, extending #2 with a second attribute check before a later bitmap operation and a regression test grouping by ctid alongside regular columns.
- Tomas Vondra announced that he had pushed the corrected fix and backpatched it through PostgreSQL 10 #3.
- Justin Pryzby subsequently reported encountering the same error while grouping by tableoid and acknowledged that it had already been fixed; the thread ended without another patch or an outstanding review request #4.