]> granicus.if.org Git - postgresql/commit
Use correct path separator for Windows builtin commands.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 3 Sep 2012 22:11:02 +0000 (18:11 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 3 Sep 2012 22:11:02 +0000 (18:11 -0400)
commitf88ad86fba2a1700c96953ee26ed700f08fa5d7e
treebdf2d9cf88af031535e09f18308df26060dcecd0
parentc879e82b3746150171fcec605a6d5b2b21e5c6cf
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.
contrib/pg_upgrade/check.c
contrib/pg_upgrade/pg_upgrade.h