Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e5cf72

Browse files
committed
Prevent msys2 conversion of "cmd /c" switch to a file path
Modern versions of msys2 have changed the treatment of "cmd /c" so thatthe runtime will try to convert the switch to a native file path. Thispatch adds a setting to inhibit that behaviour.Discussion:https://postgr.es/m/3227042f-cfcc-745a-57dd-fb8c471f8ddf@2ndQuadrant.comBackpatch to all live branches.
1 parent5f73d72 commit3e5cf72

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎contrib/pg_upgrade/test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,11 @@ pg_upgrade $PG_UPGRADE_OPTS -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B
214214

215215
pg_ctl start -l"$logdir/postmaster2.log" -o"$POSTMASTER_OPTS" -w
216216

217+
# In the commands below we inhibit msys2 from converting the "/c" switch
218+
# in "cmd /c" to a file system path.
219+
217220
case$testhostin
218-
MINGW*)cmd /c analyze_new_cluster.bat ;;
221+
MINGW*)MSYS2_ARG_CONV_EXCL=/ccmd /c analyze_new_cluster.bat ;;
219222
*)sh ./analyze_new_cluster.sh ;;
220223
esac
221224

@@ -228,7 +231,7 @@ if [ -n "$pg_dumpall2_status" ]; then
228231
fi
229232

230233
case$testhostin
231-
MINGW*)cmd /c delete_old_cluster.bat ;;
234+
MINGW*)MSYS2_ARG_CONV_EXCL=/ccmd /c delete_old_cluster.bat ;;
232235
*) sh ./delete_old_cluster.sh ;;
233236
esac
234237

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp