model-writtenrun 10203 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Rajkumar Raghuwanshi reported that partition pruning raised a negative-bitmapset-member error for an IS NULL query involving a default partition nested inside another default partition, while disabling pruning avoided the error #1.
- Tom Lane traced the failure to perform_pruning_combine_step passing an empty range to bms_add_range, suggested a local guard, and questioned whether the bitmapset API should instead accept empty ranges as a no-op #2.
- Amit Langote verified that downstream pruning code accepts empty bound offsets and submitted a local guard plus an assertion for the hash-partition case, where zero bounds should be impossible #3.
- David Rowley initially favored retaining the API error to expose pruning bugs #4, but Tom argued that nonempty-range requirements belong in assertions at individual call sites #5.
- Amit expanded the patch with assertions across partition pruning and the Append and MergeAppend executors while retaining the original guard #6; David then agreed with placing assertions at the call sites #7.
- Alvaro Herrera committed the API change and Rajkumar's regression case as 1b68010518, then committed the assertions from #6 as d25d45e4d9, omitting the now-unnecessary local guard.
- Alvaro closed the thread by confirming both commits and reporting that the regression case reproduced the original bug and passed with the API change; no patch work remained outstanding #8.