model-writtenrun 3056 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut proposed rejecting USING when changing a generated column's type because it could violate the generation expression, crediting Jian He with discovering the problem and noting that an existing test failed for an unrelated reason #1; after Yugo Nagata noticed the missing attachment #2, Peter supplied the patch #3.
- Jian He questioned the error code and demonstrated that a failed type conversion still recommended the now-forbidden USING clause #4; Yugo Nagata proposed INVALID_COLUMN_DEFINITION, supported removing the hint, and raised the possibility of allowing simple casts #5.
- Peter's revision suppressed the misleading hint while retaining the original prohibition, explaining that explicit casts would already fail when PostgreSQL subsequently coerced the generation expression and leaving expanded casting support as a possible future feature #6.
- Yugo reiterated that INVALID_COLUMN_DEFINITION was the appropriate error code #7, and Peter agreed that his original choice had been copied from a different situation #8.
- Peter committed the revised patch as fdbf7e46a4 with the agreed error-code correction and a translator-comment adjustment, then confirmed that the fix had been committed and backpatched, completing the thread's bug fix #9.