model-writtenrun 1488 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li reported that pg_stat_get_backend_activity() discarded the result of pgstat_clip_activity() and submitted a one-line fix to return the clipped string in #1.
- Chao Li identified truncation through a multibyte character at the track_activity_query_size boundary as the triggering condition, but reported that his reproduction attempt had failed in #1.
- Michael Paquier confirmed the bug and called for backpatching to all supported branches, noting that this function was less commonly used than pg_stat_activity, in #2.
- The patch from #1 landed unchanged as 36b8f4974a, and Michael Paquier announced its application through PostgreSQL 14 in #3.
- Chao Li thanked Michael Paquier in #4, closing the thread with the fix committed and no outstanding revisions.