Skip to content

Commit ced53c3

Browse files
committed
In pg_upgrade, move new echo quote define into include file.
1 parent 313d29f commit ced53c3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

contrib/pg_upgrade/check.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ static void check_for_reg_data_type_usage(ClusterInfo *cluster);
2323
static void check_for_support_lib(ClusterInfo *cluster);
2424
static void get_bin_version(ClusterInfo *cluster);
2525

26-
#ifndef WIN32
27-
#define ECHO_QUOTE "'"
28-
#else
29-
#define ECHO_QUOTE ""
30-
#endif
3126

3227
void
3328
output_check_banner(bool *live_check)

contrib/pg_upgrade/pg_upgrade.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ extern char *output_files[];
6363
#define SERVER_LOG_FILE2 UTILITY_LOG_FILE
6464
#endif
6565

66+
6667
#ifndef WIN32
6768
#define pg_copy_file copy_file
6869
#define pg_mv_file rename
6970
#define pg_link_file link
7071
#define RM_CMD "rm -f"
7172
#define RMDIR_CMD "rm -rf"
7273
#define SCRIPT_EXT "sh"
74+
#define ECHO_QUOTE "'"
7375
#else
7476
#define pg_copy_file CopyFile
7577
#define pg_mv_file pgrename
@@ -79,6 +81,7 @@ extern char *output_files[];
7981
#define RMDIR_CMD "RMDIR /s/q"
8082
#define SCRIPT_EXT "bat"
8183
#define EXE_EXT ".exe"
84+
#define ECHO_QUOTE ""
8285
#endif
8386

8487
#define CLUSTER_NAME(cluster) ((cluster) == &old_cluster ? "old" : \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy