model-writtenrun 380 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut reported a DELETE FOR PORTION OF assertion failure with a range-partitioned table and RETURNING, observing that execution worked with assertions disabled and suggesting the assertions needed updating #1.
- Paul A Jungwirth acknowledged the report but deferred investigation until returning from a trip #2; Nathan Bossart subsequently asked whether the bug belonged on the PostgreSQL 19 open-items list #3.
- Paul traced the failure to temporal leftovers being routed into a partition pruned from the original query, causing ExecInitPartitionInfo() to encounter CMD_DELETE where its assertions did not allow it; his patch extended both the RETURNING and WITH CHECK OPTION assertions #4.
- Paul added regression tests using lower(valid_at) as the partition key, covering DELETE and UPDATE returning behavior and acceptance or rejection of leftovers by view check options; he also established that generated columns could not be partition keys and needed no additional handling #4.
- Peter committed the complete patch #4 unchanged as 938f4f8f34 and confirmed completion in the final reply, leaving no outstanding work identified in the thread #5.