pg_combinebackup: Fix incorrect tablespace handling.

Robert Haas <rhaas@postgresql.org>

Commit: cd64dc42d1e1b03e57e6ba3d316e4f9dec52a78d
Author: Robert Haas <rhaas@postgresql.org>
Date: 2024-04-19T17:30:42Z
Releases: 17.0
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

Files

Discussion