mirror of
https://github.com/postgres/postgres.git
synced 2026-02-16 09:08:23 -05:00
Have pg_upgrade only use one extra log file for Win32, not two.
This commit is contained in:
parent
31d965819b
commit
45ca31d6a7
2 changed files with 3 additions and 2 deletions
|
|
@ -58,8 +58,8 @@ OSInfo os_info;
|
|||
char *output_files[] = {
|
||||
SERVER_LOG_FILE,
|
||||
#ifdef WIN32
|
||||
/* unique file for pg_ctl start */
|
||||
SERVER_START_LOG_FILE,
|
||||
SERVER_STOP_LOG_FILE,
|
||||
#endif
|
||||
RESTORE_LOG_FILE,
|
||||
UTILITY_LOG_FILE,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@ extern char *output_files[];
|
|||
#define SERVER_STOP_LOG_FILE SERVER_LOG_FILE
|
||||
#else
|
||||
#define SERVER_START_LOG_FILE "pg_upgrade_server_start.log"
|
||||
#define SERVER_STOP_LOG_FILE "pg_upgrade_server_stop.log"
|
||||
/* pg_ctl stop doesn't keep the log file open, so reuse UTILITY_LOG_FILE */
|
||||
#define SERVER_STOP_LOG_FILE UTILITY_LOG_FILE
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue