model-writtenrun 506 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bryan Green reported that connection-only polls with an undefined query could die while constructing the timeout diagnostic, hiding the underlying failure because Perl warnings are fatal #1.
- Bryan supplied a patch, crediting Mark Dilger as co-author, that substitutes a fallback string for undefined queries before printing the diagnostic #1.
- Jonathan Gonzalez V. reproduced the failure with a standalone Perl command and recommended replacing the defined-or operator with an explicit defined check for consistency with surrounding code #2.
- Michael Paquier agreed that an explicit defined check was preferable and said he would fix the problem, leaving no unresolved design question in the final thread message #3.
- Michael committed the patch with the explicit defined check and shorter diagnostic text as 6828b03b06, completing the fix from #1 and specifying backpatching through PostgreSQL 14.