Re: md5 issues Postgres14 on OL7

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: md5 issues Postgres14 on OL7
Дата
Msg-id YdQ1GLqQ/Vq6LwW9@paquier.xyz
обсуждение исходный текст
Ответ на Re: md5 issues Postgres14 on OL7  (Christoph Moench-Tegeder <cmt@burggraben.net>)
Ответы Re: md5 issues Postgres14 on OL7
Re: md5 issues Postgres14 on OL7
Список pgsql-general
On Mon, Dec 20, 2021 at 03:22:31PM +0100, Christoph Moench-Tegeder wrote:
> Active FIPS mode (/proc/sys/crypto/fips_enabled => 1) on the server does
> produce this behaviour.

Most likely, this is a build linked with OpenSSL?  The way MD5 hashes
are computed in Postgres has largely changed in 14, and the code has
been refactored so as we rely on the EVP APIs from OpenSSL when
building with --with-ssl=openssl, having as direct consequence to
allocate a bit more memory every time a hash is computed.  My guess is
that this comes from pg_cryptohash_create() in cryptohash_openssl.c,
with a complain coming from OpenSSL's EVP_MD_CTX_create(), but there
are other palloc() calls in this area as well.
--
Michael

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Matthias Apitz
Дата:
Сообщение: restoring a single database from a pg_dumpall dump file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: restoring a single database from a pg_dumpall dump file