model-writtenrun 5505 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vitaly Voronov reported that PostgreSQL 14.3 rejected a larger UTF-8 CSV file when copying into a SQL_ASCII database while a smaller file containing the same rows succeeded #1, then corrected the reproduction commands #2.
- Heikki Linnakangas suspected a regression in f82de5c46b and offered to investigate #3.
- After reproducing the failure and confirming its introduction in PostgreSQL 14, Heikki supplied a patch that uses the input file encoding rather than the database encoding to determine whether an incomplete character is invalid, and proposed committing and backpatching it #4.
- Heikki initially planned a separate cleanup of obsolete COPY protocol comments #4, but fc36ac52eb combines that cleanup with the unchanged functional fix and specifies backpatching to PostgreSQL 14.
- Heikki closed the thread by confirming that the fix and comment changes had been committed together, leaving no outstanding patch revisions #5.