model-writtenrun 6366 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that creating a hash partition with an incompatible modulus crashed PostgreSQL 14beta2 while formatting the error detail, supplying SQL and a backtrace in #1.
- Tom Lane traced the crash to treating a missing remainder's partition index as a valid array index, suspected incorrect partition names in other cases, and initially proposed reverting the faulty change in #2.
- Tom Lane demonstrated an incorrect partition name with another test case and suggested scanning for a partition with the required modulus in #3.
- Amit Langote explained that hash-bound offsets already correspond directly to partition OIDs, making a scan unnecessary, and supplied three direct-indexing fixes plus regression coverage in #4.
- Tom Lane committed the complete patch with comment clarifications as dd2364ced9 and confirmed the push in #5, resolving the thread without a revert or outstanding patch work.