model-writtenrun 8289 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexandra Wang and Ashwin Agrawal proposed supplying a real ParseState to partition-bound checks so errors could display query positions, while also raising the alternative of removing the ineffective cursor reporting #1; Alexandra promptly added missing regression expectations #2.
- Michael Paquier favored retaining useful error positions for complex definitions but considered the improvement PostgreSQL 14 material because PostgreSQL 13 was past feature freeze #3.
- Ashutosh Bapat proposed supplying query text for ATTACH PARTITION through AlterTableUtilityContext #6, Amit Langote suggested passing that context into ATExecAttachPartition() #8, and Tom Lane requested cursors identifying the troublesome partition-key column instead of the FROM keyword #7.
- Amit Langote supplied a two-patch revision implementing ATTACH PARTITION support and more precise cursor selection, including expression-location preservation, while noting that overlap errors still identified a bound rather than its exact offending column #9.
- After Ashutosh Bapat observed that pointing at the first column could mislead users #10, Alexandra Wang revised the second patch to identify the exact column in partition-overlap errors #12.
- Daniel Gustafsson reported regression-output conflicts after the intervening months #13, and Alexandra Wang rebased and combined both patches into one submission #14, leaving the work awaiting further review at this thread's end.
- The supplied continuation-thread record attributes the eventual landing to the later revision #458698 in thread #42664, committed by Tom Lane as 6b2c4e59d0 with further parser-expression handling and cleanup; the commit credits Alexandra Wang, Ashwin Agrawal, and Amit Langote as authors and Ashutosh Bapat as reviewer.