model-writtenrun 779 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Paul A Jungwirth reported that FOR PORTION OF accepted WHERE CURRENT OF despite producing nonsensical behavior, and explained that the SQL standard excludes this combination #1.
- Paul proposed rejecting the combination for PostgreSQL 19, leaving possible future support unresolved because temporal filtering might conflict with the promise of WHERE CURRENT OF #1.
- The attached patch passes the WHERE clause into transformForPortionOfClause, rejects CurrentOfExpr, documents the restriction, and tests both UPDATE and DELETE #1.
- Peter Eisentraut committed the patch from #1 as bc3ae886a7, preserving its implementation, documentation, and tests apart from whitespace and rebase adjustments.
- Peter announced that the patch was committed, closing the thread with the proposed restriction landed #2.