Prevent pg_enable/disable_data_checksums() on standby These functions missed a RecoveryInProgress() check, allowing them to be called on a hot standby. Enabling, or disabling, checksums on the standby only would cause the cluster to get out of sync and replaying checksum transitions to fail.
Author: Satyanarayana Narlapuram <[email protected]> Reviewed-by: Ayush Tiwari <[email protected]> Reviewed-by: Tomas Vondra <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Discussion: https://postgr.es/m/CAHg+QDfRk4-S7DMmdbXJnQ-xF=supmakuh8b83oblqyvkx5...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b120358c612dce62b493da7682b4df90a10783c9 Modified Files -------------- src/backend/postmaster/datachecksum_state.c | 4 ++++ 1 file changed, 4 insertions(+)
