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
2f2be747
Commit
2f2be747
authored
Oct 18, 2012
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a more portable platform test.
parent
2a49585e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
contrib/pg_upgrade/test.sh
contrib/pg_upgrade/test.sh
+10
-11
No files found.
contrib/pg_upgrade/test.sh
View file @
2f2be747
...
...
@@ -15,7 +15,7 @@ set -e
:
${
PGPORT
=50432
}
export
PGPORT
testhost
=
`
uname
-
o
`
testhost
=
`
uname
-
s
`
temp_root
=
$PWD
/tmp_check
...
...
@@ -110,11 +110,11 @@ pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
pg_ctl start
-l
"
$logdir
/postmaster2.log"
-o
'-F'
-w
if
[
$testhost
=
Msys
]
;
the
n
cmd /c analyze_new_cluster.bat
else
sh ./analyze_new_cluster.sh
fi
case
$testhost
i
n
MINGW
*
)
cmd /c analyze_new_cluster.bat
;;
*
)
sh ./analyze_new_cluster.sh
;;
esac
pg_dumpall
-f
"
$temp_root
"
/dump2.sql
||
pg_dumpall2_status
=
$?
pg_ctl
-m
fast stop
if
[
-n
"
$pg_dumpall2_status
"
]
;
then
...
...
@@ -122,11 +122,10 @@ if [ -n "$pg_dumpall2_status" ]; then
exit
1
fi
if
[
$testhost
=
Msys
]
;
then
cmd /c delete_old_cluster.bat
else
sh ./delete_old_cluster.sh
fi
case
$testhost
in
MINGW
*
)
cmd /c delete_old_cluster.bat
;;
*
)
sh ./delete_old_cluster.sh
;;
esac
if
diff
-q
"
$temp_root
"
/dump1.sql
"
$temp_root
"
/dump2.sql
;
then
echo
PASSED
...
...
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