Remove PG_SHA*_DIGEST_STRING_LENGTH from sha2.h

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Remove PG_SHA*_DIGEST_STRING_LENGTH from sha2.h
Date: 2021-01-14 06:11:12
Message-ID: X//ggAqmTtt+3t7X@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

I have just noticed that aef8948 has removed the last reference to
PG_SHA256_DIGEST_STRING_LENGTH in the code (this was getting used to
know the length of a SHA256 digest encoded to hex for checksum
manifests, but pg_hex_enc_len() calculates the same in a more
consistent way). Attached is a patch to remove all those now-useless
declarations, for all four SHA2 options.

Thoughts?
--
Michael

Attachment Content-Type Size
sha2_cleanup.patch text/x-diff 896 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2021-01-14 06:14:25 Re: shared-memory based stats collector
Previous Message Michael Paquier 2021-01-14 05:55:13 Re: outdated references to replication timeout