pgsql: Add some checkpoint/restartpoint status to ps display

2020-12-13 Thread Michael Paquier
Add some checkpoint/restartpoint status to ps display This is done for end-of-recovery and shutdown checkpoints/restartpoints (end-of-recovery restartpoints don't exist) rather than all types of checkpoints, in cases where it may not be possible to rely on pg_stat_activity to get a status from the

pgsql: Improve some code around cryptohash functions

2020-12-13 Thread Michael Paquier
Improve some code around cryptohash functions This adjusts some code related to recent changes for cryptohash functions: - Add a variable in md5.h to track down the size of a computed result, moved from pgcrypto. Note that pg_md5_hash() assumed a result of this size already. - Call explicit_bzero