model-writtenrun 2394 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier announced a pg_upgrade memory-management fix that always used PQescapeLiteral() so allocation and freeing would both occur through libpq #1.
- Jeff Davis reported that cross-version upgrade tests from PostgreSQL 14 or earlier failed because the fix stored the string 'NULL' instead of SQL NULL #2.
- Michael proposed escaping only actual locale values and pairing pg_strdup("NULL") with pg_free(), while asking how the buildfarm could detect these cross-version failures #3.
- Jeff simplified the fix by using a constant "NULL" string and freeing only escaped values; he also explained that these cross-version TAP tests required manually setting olddump/oldinstall, leaving automated coverage as an unresolved improvement #4.
- Michael accepted Jeff's revision #5, and Jeff committed its code unchanged as 945126234b.
- Michael noticed that the fix initially lacked backpatches and requested coverage through PostgreSQL 16 #6; Jeff confirmed those backports were complete #7, and Michael closed the thread with thanks #8.