Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7afa8be

Browse files
committed
pg_upgrade: Run the created scripts in the test suite
Just to check that they actually work.
1 parent 6e2e12c commit 7afa8be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/pg_upgrade/test.sh

+3
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)