]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_upgrade: generate check error for left-over new tablespace
authorBruce Momjian <bruce@momjian.us>
Thu, 15 Oct 2020 23:33:36 +0000 (19:33 -0400)
committerBruce Momjian <bruce@momjian.us>
Thu, 15 Oct 2020 23:33:36 +0000 (19:33 -0400)
commitd9ae2297bf0f668467780bd80815a4a2d30e822c
tree2064be28cf8a8765716b5c53250a710d3508e8a1
parent43ca5e07d1bb160deeddaba8456d462a460dc4f8
pg_upgrade:  generate check error for left-over new tablespace

Previously, if pg_upgrade failed, and the user recreated the cluster but
did not remove the new cluster tablespace directory, a later pg_upgrade
would fail since the new tablespace directory would already exists.
This adds error reporting for this during check.

Reported-by: Justin Pryzby
Discussion: https://postgr.es/m/20200925005531.GJ23631@telsasoft.com

Backpatch-through: 9.5
src/bin/pg_upgrade/check.c