]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix some error message inconsistencies
authorMichael Paquier <michael@paquier.xyz>
Fri, 6 Feb 2026 06:38:25 +0000 (15:38 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 6 Feb 2026 06:38:25 +0000 (15:38 +0900)
commit977a17a3eb335f1432322ecae6f0d53bafc9436a
treee285461ce74be773bf584f813232f65baded7e10
parente37b598028469d260650e5e1671c8275d30e22b6
Fix some error message inconsistencies

These errors are very unlikely going to show up, but in the event that
they happen, some incorrect information would have been provided:
- In pg_rewind, a stat() failure was reported as an open() failure.
- In pg_combinebackup, a check for the new directory of a tablespace
mapping was referred as the old directory.
- In pg_combinebackup, a failure in reading a source file when copying
blocks referred to the destination file.

The changes for pg_combinebackup affect v17 and newer versions.  For
pg_rewind, all the stable branches are affected.

Author: Man Zeng <zengman@halodbtech.com>
Discussion: https://postgr.es/m/tencent_1EE1430B1E6C18A663B8990F@qq.com
Backpatch-through: 14
src/bin/pg_rewind/file_ops.c