Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7afa8be

Browse files
committed
pg_upgrade: Run the created scripts in the test suite
Just to check that they actually work.
1 parent6e2e12c commit7afa8be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎contrib/pg_upgrade/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,16 @@ initdb
107107
pg_upgrade -d"${PGDATA}.old" -D"${PGDATA}" -b"$oldbindir" -B"$bindir"
108108

109109
pg_ctl start -l"$logdir/postmaster2.log" -w
110+
sh ./analyze_new_cluster.sh
110111
pg_dumpall>"$temp_root"/dump2.sql|| pg_dumpall2_status=$?
111112
pg_ctl -m fast stop
112113
if [-n"$pg_dumpall2_status" ];then
113114
echo"pg_dumpall of post-upgrade database cluster failed"
114115
exit 1
115116
fi
116117

118+
sh ./delete_old_cluster.sh
119+
117120
if diff -q"$temp_root"/dump1.sql"$temp_root"/dump2.sql;then
118121
echo PASSED
119122
exit 0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp