diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-01-28 16:13:26 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-01-28 16:13:26 +0900 |
commit | f854c69a5b36ba7aa85bee9e9590c3e517970156 (patch) | |
tree | da150086ae82dac74ea8b0191685e84d9f2a031d /src/backend/access/gist/gistvacuum.c | |
parent | e19594c5c059d2e071b67d87ae84f569a52d2e32 (diff) | |
download | postgresql-f854c69a5b36ba7aa85bee9e9590c3e517970156.tar.gz postgresql-f854c69a5b36ba7aa85bee9e9590c3e517970156.zip |
Refactor SQL functions of SHA-2 in cryptohashfuncs.c
The same code pattern was repeated four times when compiling a SHA-2
hash. This refactoring has the advantage to issue a compilation warning
if a new value is added to pg_cryptohash_type, so as anybody doing an
addition in this area would need to consider if support for a new SQL
function is needed or not.
Author: Sehrope Sarkuni, Michael Paquier
Discussion: https://postgr.es/m/YA7DvLRn2xnTgsMc@paquier.xyz
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions