Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
722d5bee
Commit
722d5bee
authored
14 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
In pg_upgrade, rename SHELL_EXT to SCRIPT_EXT, for clarity.
parent
51eeccd6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/pg_upgrade/check.c
+1
-1
1 addition, 1 deletion
contrib/pg_upgrade/check.c
contrib/pg_upgrade/pg_upgrade.h
+2
-2
2 additions, 2 deletions
contrib/pg_upgrade/pg_upgrade.h
with
3 additions
and
3 deletions
contrib/pg_upgrade/check.c
+
1
−
1
View file @
722d5bee
...
@@ -389,7 +389,7 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
...
@@ -389,7 +389,7 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
prep_status
(
ctx
,
"Creating script to delete old cluster"
);
prep_status
(
ctx
,
"Creating script to delete old cluster"
);
snprintf
(
*
deletion_script_file_name
,
MAXPGPATH
,
"%s/delete_old_cluster.%s"
,
snprintf
(
*
deletion_script_file_name
,
MAXPGPATH
,
"%s/delete_old_cluster.%s"
,
ctx
->
cwd
,
S
HELL
_EXT
);
ctx
->
cwd
,
S
CRIPT
_EXT
);
if
((
script
=
fopen
(
*
deletion_script_file_name
,
"w"
))
==
NULL
)
if
((
script
=
fopen
(
*
deletion_script_file_name
,
"w"
))
==
NULL
)
pg_log
(
ctx
,
PG_FATAL
,
"Could not create necessary file: %s
\n
"
,
pg_log
(
ctx
,
PG_FATAL
,
"Could not create necessary file: %s
\n
"
,
...
...
This diff is collapsed.
Click to expand it.
contrib/pg_upgrade/pg_upgrade.h
+
2
−
2
View file @
722d5bee
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#define pg_link_file link
#define pg_link_file link
#define RM_CMD "rm -f"
#define RM_CMD "rm -f"
#define RMDIR_CMD "rm -rf"
#define RMDIR_CMD "rm -rf"
#define S
HELL
_EXT "sh"
#define S
CRIPT
_EXT "sh"
#else
#else
#define pg_copy_file CopyFile
#define pg_copy_file CopyFile
#define pg_mv_file pgrename
#define pg_mv_file pgrename
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
#define sleep(x) Sleep(x * 1000)
#define sleep(x) Sleep(x * 1000)
#define RM_CMD "DEL /q"
#define RM_CMD "DEL /q"
#define RMDIR_CMD "RMDIR /s/q"
#define RMDIR_CMD "RMDIR /s/q"
#define S
HELL
_EXT "bat"
#define S
CRIPT
_EXT "bat"
#define EXE_EXT ".exe"
#define EXE_EXT ".exe"
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment