model-writtenrun 2566 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Pryzby reported that upgrading to PostgreSQL 17.3 broke PyGreSQL inserts because PQescapeIdentifier() ignored its length argument and escaped an entire qualified name instead of its schema component #1.
- Ranier Vilela raised a potentially related Coverity warning #2; Tom Lane supplied a fix using strnlen(str, len) and comparing multibyte validation against the remaining bounded length #3, while explaining that the Coverity warning was longstanding and apparently caused by an inaccurate builtin model #4.
- Nathan Bossart said the patch looked correct #6, and Ranier Vilela reported that it passed standard tests on 64-bit Windows with MSVC 2022 #7.
- Andres Freund committed Tom's two-line fix unchanged, together with expanded input-boundary and Valgrind checks in test_escape.c, as efdadeb223; his announcement stated that the expanded tests detected both erroneous strlen() uses #8.
- Christoph Berg reported that PyGreSQL's regression tests also caught the failure and asked about PostgreSQL's coverage #9; Andres explained that the committed tests covered it and argued for more explicit edge-case testing of critical APIs #10.
- Christoph proposed running downstream package regression tests before minor releases and adding PyGreSQL to apt.postgresql.org #11, and Andres supported the proposal while asking about automated builds and timely reporting #12.
- The code fix was landed by the thread's end, while broader testing remained a proposal: Christoph outlined testing Monday release tarballs on Tuesday and Wednesday, discussed trying daily snapshots for downstream tests, and noted that late security changes could still escape this schedule #13.