]> granicus.if.org Git - postgresql/commit
Use correct path separator for Windows builtin commands.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 3 Sep 2012 22:06:47 +0000 (18:06 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 3 Sep 2012 22:06:47 +0000 (18:06 -0400)
commit504aeea6926730f6fa9d3e0ec3a181b659c2f594
treef3effd145a9b6a7515593e852fe3b7a0d8c600af
parent2a2352e07df9ccc70689061b6453e226a56e7c79
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