pgsql: Fix unlink() error report in KeepFileRestoredFromArchive()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix unlink() error report in KeepFileRestoredFromArchive()
Date: 2026-08-12 00:56:44
Message-ID: E1wtxGt-00000000BVq-1FxV@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix unlink() error report in KeepFileRestoredFromArchive()

KeepFileRestoredFromArchive() has been using an incorrect WAL segment
name in the error report for an unlink() failure.

Even without 1200dfd60c36, this was of consequence only on WIN32, where
we would miss to report a segment name suffixed by ".deleted%u".

Oversight in 60df192aea0e, for what looks like a copy-pasto to me.

Reported-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAHGQGwHSbJnUmWCuF-QNUsGYF=iSSuzLRx1z_dLfYFwfbTu4Cw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/feb15361b34a1bbbc586ee3dc0ad970f6434aad3

Modified Files
--------------
src/backend/access/transam/xlogarchive.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-08-12 03:09:34 pgsql: Move index statistics into their own stats kind
Previous Message Michael Paquier 2026-08-12 00:13:46 pgsql: Improve GrantLockLocal() handling on out-of-memory errors