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

Commitecfbbfc

Browse files
committed
Unbreak 9.0 and 9.1 pg_upgrade.
These were broken by my recent backpatch ofthe simple prompt fix. These older versionsused DEVTTY, so import the definition frompsql's command.c.
1 parent6121539 commitecfbbfc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎contrib/pg_upgrade/pg_upgrade.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@
5454
#defineEXE_EXT".exe"
5555
#endif
5656

57+
#if defined(WIN32)&& !defined(__CYGWIN__)
58+
59+
/*
60+
* XXX This does not work for all terminal environments or for output
61+
* containing non-ASCII characters; see comments in simple_prompt().
62+
*/
63+
#defineDEVTTY"con"
64+
#else
65+
#defineDEVTTY"/dev/tty"
66+
#endif
67+
5768
#defineCLUSTERNAME(cluster)((cluster) == CLUSTER_OLD ? "old" : "new")
5869

5970
#defineatooid(x) ((Oid) strtoul((x), NULL, 10))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp