Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 722d5be

Browse files
committed
In pg_upgrade, rename SHELL_EXT to SCRIPT_EXT, for clarity.
1 parent 51eeccd commit 722d5be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contrib/pg_upgrade/check.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
389389
prep_status(ctx, "Creating script to delete old cluster");
390390

391391
snprintf(*deletion_script_file_name, MAXPGPATH, "%s/delete_old_cluster.%s",
392-
ctx->cwd, SHELL_EXT);
392+
ctx->cwd, SCRIPT_EXT);
393393

394394
if ((script = fopen(*deletion_script_file_name, "w")) == NULL)
395395
pg_log(ctx, PG_FATAL, "Could not create necessary file: %s\n",

contrib/pg_upgrade/pg_upgrade.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
#define pg_link_file link
4141
#define RM_CMD "rm -f"
4242
#define RMDIR_CMD "rm -rf"
43-
#define SHELL_EXT "sh"
43+
#define SCRIPT_EXT "sh"
4444
#else
4545
#define pg_copy_file CopyFile
4646
#define pg_mv_file pgrename
4747
#define pg_link_file win32_pghardlink
4848
#define sleep(x) Sleep(x * 1000)
4949
#define RM_CMD "DEL /q"
5050
#define RMDIR_CMD "RMDIR /s/q"
51-
#define SHELL_EXT "bat"
51+
#define SCRIPT_EXT "bat"
5252
#define EXE_EXT ".exe"
5353
#endif
5454

0 commit comments

Comments
 (0)