model-writtenrun 5488 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Masayuki Hirose reported an ECPGdo() crash on a 32-bit RHEL8 client, with a stack trace leading through ecpg_raise_backend() to string formatting #1.
- Michael Paquier suspected a NULL error message and requested a self-contained reproducer; Tom Lane identified a likely longstanding ECPG bug that newer formatting code could mask without restoring useful error reporting #2 #3.
- Hirose described a database role switch under proprietary mirroring software, but Paquier and Lane explained that this was insufficient to reproduce the failure with community PostgreSQL #4 #5 #6.
- Hirose subsequently reported crashes with client version 12.10 and supplied instrumentation showing that a missing primary error message remained NULL when the connection status was still CONNECTION_OK #7.
- Hirose proposed an inline workaround substituting “empty message text” and reported that it prevented the crash; Lane instead chose PQerrorMessage(conn) to preserve useful diagnostics, explained that libpq-generated errors lack individual error fields, and attached the resulting patch while leaving ECPGnoticeReceiver unchanged #8 #9.
- Lane committed the attached patch unchanged as 6d157e7cb8 and backpatched the fix to all supported branches.
- The thread ended with Hirose planning to test Lane's patch and asking when it would be released; no verification result for the committed patch appears in the thread #10.