0001-Fix-error-message-in-RemoveWalSummaryIfOlderThan-to-.patch
application/octet-stream
Filename: 0001-Fix-error-message-in-RemoveWalSummaryIfOlderThan-to-.patch
Type: application/octet-stream
Part: 0
Patch
Format: format-patch
Series: patch 0001
Subject: Fix error message in RemoveWalSummaryIfOlderThan to indicate file removal failure
| File | + | − |
|---|---|---|
| src/backend/backup/walsummary.c | 1 | 1 |
From a0b823cb1618f72ab4131d97852b63103d509df5 Mon Sep 17 00:00:00 2001
From: Man Zeng <zengman@halodbtech.com>
Date: Sun, 1 Feb 2026 22:07:13 +0800
Subject: [PATCH] Fix error message in RemoveWalSummaryIfOlderThan to indicate
file removal failure
---
src/backend/backup/walsummary.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/backup/walsummary.c b/src/backend/backup/walsummary.c
index 21164faac7e..4ee510092f9 100644
--- a/src/backend/backup/walsummary.c
+++ b/src/backend/backup/walsummary.c
@@ -251,7 +251,7 @@ RemoveWalSummaryIfOlderThan(WalSummaryFile *ws, time_t cutoff_time)
if (unlink(path) != 0)
ereport(ERROR,
(errcode_for_file_access(),
- errmsg("could not stat file \"%s\": %m", path)));
+ errmsg("could not remove file \"%s\": %m", path)));
ereport(DEBUG2,
(errmsg_internal("removing file \"%s\"", path)));
}
--
2.45.2