model-writtenrun 4021 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Laurenz Albe reported that PostgreSQL 16 rejects COPY FROM when an unused column default exceeds its varchar length, although PostgreSQL 15 accepted the operation #1, and supplied a patch restricting default preparation to cases that may need it #2.
- Andrew Dunstan said the patch looked reasonable but was untested #3, then suggested validating defaults when they are defined #4; Tom Lane defended the longstanding behavior because an invalid default might deliberately prevent a column from being defaulted #5.
- Laurenz Albe explained that the regression had been discovered because restoring a PostgreSQL 15 dump into PostgreSQL 16 failed, establishing a concrete compatibility problem #6.
- Laurenz Albe submitted a revision retaining the same fix, clarifying its condition and comment, and adding tests showing that ordinary COPY succeeds while operations requiring the invalid default still fail #7.
- Andrew Dunstan committed that revision with only comment and commit-message edits as 276393f53e, backpatched the fix to PostgreSQL 16, and announced that it was pushed #8.
- The thread ended with Laurenz Albe thanking Andrew Dunstan after the fix landed, with no outstanding patch work identified #9.