pg_combinebackup: Fix incorrect tablespace handling.
authorRobert Haas <rhaas@postgresql.org>
Fri, 19 Apr 2024 17:30:42 +0000 (13:30 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 19 Apr 2024 17:30:42 +0000 (13:30 -0400)
commitcd64dc42d1e1b03e57e6ba3d316e4f9dec52a78d
tree0a13f7c9e78f289f66528b83511db9ae244f1271
parent6bf5c42b5546984df29289918f952e6211069c54
pg_combinebackup: Fix incorrect tablespace handling.

The previous coding mangled the pathname calculation for
incremental files located in user-defined tablespaces.

Enhance the test cases to cover such cases, as I should have
done originally. Thanks to Andres Freund for alerting me to the
lack of test coverage.

Discussion: http://postgr.es/m/CA+TgmoYdXTjo9iQeoipTccDpWZzvBNS6EndY2uARM+T4yG_yDg@mail.gmail.com
src/bin/pg_combinebackup/pg_combinebackup.c
src/bin/pg_combinebackup/reconstruct.c
src/bin/pg_combinebackup/t/002_compare_backups.pl