model-writtenrun 8326 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Quan Zongliang reported that invalid multibyte bit input produced malformed UTF-8 in CSV logs, preventing file_fdw from reading them, and proposed printing hexadecimal byte values in two error messages #1.
- Tom Lane cautioned that logs can contain multiple database encodings, rejected hexadecimal bytes as less user-friendly, and proposed printing complete characters with %.*s and pg_mblen(), while identifying additional vulnerable error messages #2.
- Tom Lane supplied a replacement covering seven files and improving nearby pageinspect errors, deliberately leaving catalog-derived values and non-user-facing debug output unchanged #3.
- Quan Zongliang reported successful testing #4, and Tom Lane committed the replacement with only whitespace adjustments as 16e3ad5d14, announcing the push in #5.
- Huansong Fu later reported a similar issue on PostgreSQL 12 and asked about backpatching #6; Tom Lane cited few complaints, translation work, and unreliable behavior before PostgreSQL 12, leaving a possible backpatch to version 12 or later unresolved at the thread's end #7.