Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
51eeccd6
Commit
51eeccd6
authored
Oct 19, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add removal of PG_VERSION to optional old cluster deletion script.
Backpatch to 9.0.X.
parent
f75d6a1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
contrib/pg_upgrade/check.c
contrib/pg_upgrade/check.c
+5
-0
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/pg_upgrade.h
+2
-0
No files found.
contrib/pg_upgrade/check.c
View file @
51eeccd6
...
...
@@ -416,6 +416,11 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
int
dbnum
;
fprintf
(
script
,
"
\n
"
);
/* remove PG_VERSION? */
if
(
GET_MAJOR_VERSION
(
ctx
->
old
.
major_version
)
<=
804
)
fprintf
(
script
,
RM_CMD
" %s%s/PG_VERSION
\n
"
,
ctx
->
tablespaces
[
tblnum
],
ctx
->
old
.
tablespace_suffix
);
for
(
dbnum
=
0
;
dbnum
<
ctx
->
new
.
dbarr
.
ndbs
;
dbnum
++
)
{
fprintf
(
script
,
RMDIR_CMD
" %s%s/%d
\n
"
,
...
...
contrib/pg_upgrade/pg_upgrade.h
View file @
51eeccd6
...
...
@@ -38,6 +38,7 @@
#define pg_copy_file copy_file
#define pg_mv_file rename
#define pg_link_file link
#define RM_CMD "rm -f"
#define RMDIR_CMD "rm -rf"
#define SHELL_EXT "sh"
#else
...
...
@@ -45,6 +46,7 @@
#define pg_mv_file pgrename
#define pg_link_file win32_pghardlink
#define sleep(x) Sleep(x * 1000)
#define RM_CMD "DEL /q"
#define RMDIR_CMD "RMDIR /s/q"
#define SHELL_EXT "bat"
#define EXE_EXT ".exe"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment