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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)
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