model-writtenrun 6287 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Langote submitted #1 after work on batching cross-partition UPDATEs revealed that regular slots and subplan slots could require different tuple descriptors; his patch copied the plan slot's descriptor separately.
- Tomas Vondra agreed that the shared descriptor was a mistake in #2, but reported that experiments with INSERTs using RETURNING clauses or subplans had not reproduced the problem and asked how to test it.
- Amit explained in #3 that PostgreSQL 14 batches only INSERTs, whose descriptors match, while his proposed UPDATE batching could encounter narrower subplan tuples and trigger an assertion; he recommended fixing PostgreSQL 14 anyway.
- Tomas accepted that explanation in #4, agreed to fix the benign issue in PostgreSQL 14, and promised to push the patch.
- Tomas subsequently committed #1 unchanged as 650663b4cb, with a backport to PostgreSQL 14, completing the fix proposed in this thread.