model-writtenrun 5845 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Mühlbeyer reported that md5() produced an out-of-memory error on PostgreSQL 14.1 running on Oracle Linux 7.9 in #1, and Christoph Moench-Tegeder identified enabled FIPS mode as the trigger in #2.
- Tom Lane reproduced the failure and traced it to OpenSSL rejecting MD5 during initialization in #5; he advocated better error reporting while preserving FIPS restrictions, and Christoph confirmed the misleading OOM diagnosis on CentOS in #6.
- Michael Paquier initially favored a generic hash-failure message in #7, but Tom argued that users needed the actual FIPS cause in #8; Michael then proposed retrieving implementation-specific errors from private cryptohash contexts in #9.
- Michael implemented pg_cryptohash_error() and propagated error strings through MD5 helpers and callers in #10, leaving HMAC support outside the patch because existing callers did not require it.
- Tom demonstrated that the initial generic OpenSSL failure message remained unhelpful and supplied a delta producing the actual disabled-for-FIPS reason in #11; Michael incorporated that approach in #12, captured errors immediately after failed OpenSSL calls, and added authentication log details.
- Tom requested removal of remaining const-discarding casts and safer error-string fallbacks in #13, leading to const-qualified authentication and SASL interfaces and an OpenSSL error wrapper in #14; consolidating the SSL error helpers was left aside because the small saving did not justify the allocation-convention complexity.
- Tom judged the final submission ready subject to initialization and comment cleanups in #15, and Michael committed #14 with those light edits and small integration fixes as b69aba7457.
- Michael confirmed application and the PostgreSQL 14 backpatch, including adaptation of its non-OpenSSL pgcrypto path, in #16; the submitted work had landed, while HMAC error reporting and further checksum_helper.c and backup_manifest.c improvements remained future work.