pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove useless SHA256 initialization when not using backup manif
Date: Thu, 12 Nov 2020 01:57:51 +0000
Message-ID: <E1kd1rz-00073x-Ln@gemulon.postgresql.org> (raw)

Remove useless SHA256 initialization when not using backup manifests

Attempting to take a base backup with Postgres linking to a build of
OpenSSL with FIPS enabled currently fails with or even without a backup
manifest requested because of this mandatory SHA256 initialization used
for the manifest file itself.  However, there is no need to do this
initialization at all if backup manifests are not needed because there
is no data to append to the manifest.

Note that being able to use backup manifests with OpenSSL+FIPS requires
a switch of the SHA2 implementation to use EVP, which would cause an ABI
breakage so this cannot be backpatched to 13 as it has been already
released, but at least avoiding this SHA256 initialization gives users
the possibility to take a base backup even when specifying --no-manifest
with pg_basebackup.

Author: Michael Paquier
Discussion: https://postgr.es/m/20201110020014.GE1887@paquier.xyz
Backpatch-through: 13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/03f9cd93eaa5e3385b075bb1a17d2adde3e23edd

Modified Files
--------------
src/backend/replication/backup_manifest.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1kd1rz-00073x-Ln@gemulon.postgresql.org>
Permalink:  ../E1kd1rz-00073x-Ln@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kd1rz-00073x-Ln@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Remove useless SHA256 initialization when not using backup manif
  In-Reply-To: <E1kd1rz-00073x-Ln@gemulon.postgresql.org>
  References: <E1kd1rz-00073x-Ln@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox