Fix thinko with subdirectories generated by pg_upgrade for internal files
authorMichael Paquier <michael@paquier.xyz>
Tue, 15 Feb 2022 02:46:55 +0000 (11:46 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 15 Feb 2022 02:46:55 +0000 (11:46 +0900)
commita008496300110d1b5ab7cb29b67ac043a6999bdb
treed9c7f068f0a34ca7de34083c16be792f59cf0701
parent2f6501fa3c54bbe4568e3bcccd9a60d26a46b5ee
Fix thinko with subdirectories generated by pg_upgrade for internal files

38bfae3 has mixed the "dump/" and "log/" subdirectories generated in
"pg_upgrade_output.d/", causing the internal dump files to be generated
in "log/" and the log files to be in "dump/", but the opposite should be
done.  This was not directly an issue for pg_upgrade runs, as the
internal dump files were still picked up at the location of their
creation, but the newest version of the buildfarm client would have
reported the dump files instead of the log files on failures of
pg_upgrade.

Issue spotted while testing the TAP tests of pg_upgrade.
src/bin/pg_upgrade/pg_upgrade.c