From db7dcd30390989056b95d7d283341513365fc7a5 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 11 Sep 2018 09:18:58 +0000 Subject: [PATCH] [run_test.pl] More debugging outputs git-svn-id: http://svn.osgeo.org/postgis/trunk@16736 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/run_test.pl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/regress/run_test.pl b/regress/run_test.pl index 2395df509..02cc8e648 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -1319,6 +1319,9 @@ sub prepare_spatial_extensions if ( $OPT_UPGRADE_FROM ) { $sql .= " VERSION '" . $OPT_UPGRADE_FROM . "'"; } + + print "Preparing db '${DB}' using: ${sql}\n"; + $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1"; $rv = system($cmd); if ( $rv ) { @@ -1487,6 +1490,9 @@ sub upgrade_spatial_extensions # upgrade of postgis must have unpackaged raster, so # we create it again here my $sql = "CREATE EXTENSION postgis_raster VERSION '${nextver}' FROM unpackaged"; + + print "Upgrading PostGIS Raster in '${DB}' using: ${sql}\n" ; + my $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1"; my $rv = system($cmd); if ( $rv ) { @@ -1497,6 +1503,9 @@ sub upgrade_spatial_extensions else { my $sql = "ALTER EXTENSION postgis_raster UPDATE TO '${nextver}'"; + + print "Upgrading PostGIS Raster in '${DB}' using: ${sql}\n" ; + my $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1"; my $rv = system($cmd); if ( $rv ) { @@ -1514,7 +1523,7 @@ sub upgrade_spatial_extensions $sql = "CREATE EXTENSION postgis_topology VERSION '${nextver}' FROM unpackaged"; } - print "Upgrading PostGIS Topology in '${DB}' using: ${sql}\n" ; + print "Upgrading PostGIS Topology in '${DB}' using: ${sql}\n"; my $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1"; my $rv = system($cmd); -- 2.40.0