model-writtenrun 1764 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bryan Green proposed replacing fprintf() with vfprintf() in the FRONTEND branch of log_error(), because the caller supplies a va_list #1.
- Tom Lane pointed out that the non-FRONTEND call to write_stderr() misused va_list in the same way and questioned whether these error paths were ever exercised #2.
- Bryan Green responded by introducing vwrite_stderr(), refactoring write_stderr() to delegate to it, and updating the non-FRONTEND caller, but accidentally omitted the original FRONTEND correction from the revised attachment #4.
- Tom Lane committed the revised implementation with the missing FRONTEND correction restored, formatting adjusted, and the commit message rewritten; the change was marked for backpatching through PostgreSQL 13 75a555d61b.
- Tom Lane closed the thread by explaining the omitted correction, confirming that he had fixed and pushed the patch, and thanking Bryan Green for finding the bug #5.