Here is a patch against 9.2 sources (it applies with offsets to HEAD
too) to fix the problem that pg_upgrade can write paths in arguments for
Windows builtin commands (specifically DEL and RMDIR) with the wrong
path separator style. This should be applied all the way back to 9.0.
cheers
andrew