Use correct path separator for Windows builtin commands.

Andrew Dunstan <andrew@dunslane.net>

Commit: 4397c51816cbb918fc3aebc474dd53bc231502b9
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2012-09-03T22:14:06Z
Releases: 9.0.10
Use correct path separator for Windows builtin commands.

pg_upgrade produces a platform-specific script to remove the old
directory, but on Windows it has not been making sure that the
paths it writes as arguments for rmdir and del use the backslash
path separator, which will cause these scripts to fail.

The fix is backpatched to Release 9.0.

Files

PathChange+/−
contrib/pg_upgrade/check.c modified +40 −7
contrib/pg_upgrade/pg_upgrade.h modified +2 −0