pgsql: pg_resetwal: Fix incorrect error message related to pg_wal/summa
pgsql: pg_resetwal: Fix incorrect error message related to pg_wal/summa
От:
Michael Paquier <michael@paquier.xyz>
Дата:
pg_resetwal: Fix incorrect error message related to pg_wal/summaries/ A failure while closing pg_wal/summaries/ incorrectly generated a report about pg_wal/archive_status/. While at it, this commit adds #undefs for the macros used in KillExistingWALSummaries() and KillExistingArchiveStatus() to prevent those values from being misused in an incorrect function context. Oversight in dc212340058b. Author: Tianchen Zhang Reviewed-by: Chao Li Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/SE2P216MB2390C84C23F428A7864EE07FA19BA@SE2P216MB2390.KORP216.PROD.OUTLOOK.COM Backpatch-through: 17 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2ca4464b6992508a6be201ff8f10847e64e2291d Modified Files -------------- src/bin/pg_resetwal/pg_resetwal.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)