model-writtenrun 7850 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier opened the thread with an error-injection finding: OpenSSL cryptohash contexts needed TopMemoryContext allocation to survive cascading resource-owner cleanup, and he supplied a minimal fix in #1.
- Heikki Linnakangas identified allocation-failure leaks and supplied safeguards in #2, then replaced the two separately allocated structures with one opaque context in #3, reporting that regression tests passed.
- Michael warned that returning NULL on backend allocation failure could break callers in #4; Heikki favored backend exceptions and suggested deferring operational errors until finalization in #6, while Michael retained separate init/update/final error returns for OpenSSL consistency and callback flexibility in #8.
- Heikki also identified misleading success returns for NULL contexts in #7, and Michael incorporated error returns into #9 alongside context zeroing, cleanup after EVP allocation failure, and restored backend allocation exceptions; he accepted the small memory overhead of a maximum-sized fallback union.
- Robert Haas objected to nonspecific error returns and proposed assertions in #10, but Michael defended caller-controlled errors for frontend use, allocation failures, and authentication behavior in #11.
- Michael posted the final formatting and typedef cleanup in #12, and Heikki acknowledged it in #13 before auditing callers in #14, finding unchecked pgcrypto calls, redundant checksum fields, and separate SHA1 and mock-authentication concerns.
- The final allocation patch #12 landed unchanged as 55fe26a4b5, credited to Heikki, with Michael confirming completion in #15.
- Michael supplied a separate cleanup patch in #16 to check pgcrypto MD5 return values and consolidate checksum SHA2 context fields, clarified that backend creation cannot return NULL, and pointed to separate work for SHA1 support.
- Heikki proposed logging mock-authentication errors with COMMERROR in #17; Michael explained in #18 that a hard failure or fallback salt would still be needed, leaving that question unresolved.
- The cleanup patch #16 landed unchanged as 15b824da97, confirmed in #18, completing both attached work items while the mock-authentication discussion remained open.