Content-Length: 270669 | pFad | http://github.com/postgrespro/postgres/commit/7afa8bed65ea925208f128048f3a528a64e1319a

FA pg_upgrade: Run the created scripts in the test suite · postgrespro/postgres@7afa8be · GitHub
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

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/7afa8bed65ea925208f128048f3a528a64e1319a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy