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

Commit45ca31d

Browse files
committed
Have pg_upgrade only use one extra log file for Win32, not two.
1 parent31d9658 commit45ca31d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎contrib/pg_upgrade/pg_upgrade.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ OSInfoos_info;
5858
char*output_files[]= {
5959
SERVER_LOG_FILE,
6060
#ifdefWIN32
61+
/* unique file for pg_ctl start */
6162
SERVER_START_LOG_FILE,
62-
SERVER_STOP_LOG_FILE,
6363
#endif
6464
RESTORE_LOG_FILE,
6565
UTILITY_LOG_FILE,

‎contrib/pg_upgrade/pg_upgrade.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ extern char *output_files[];
6363
#defineSERVER_STOP_LOG_FILESERVER_LOG_FILE
6464
#else
6565
#defineSERVER_START_LOG_FILE"pg_upgrade_server_start.log"
66-
#defineSERVER_STOP_LOG_FILE"pg_upgrade_server_stop.log"
66+
/* pg_ctl stop doesn't keep the log file open, so reuse UTILITY_LOG_FILE */
67+
#defineSERVER_STOP_LOG_FILEUTILITY_LOG_FILE
6768
#endif
6869

6970

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp