[postgis-tickets] r17751 - [check-all-upgrades] Fix retrival of :auto version

Sandro Santilli strk at kbt.io
Wed Aug 21 11:47:51 PDT 2019


Author: strk
Date: 2019-08-21 23:47:50 -0700 (Wed, 21 Aug 2019)
New Revision: 17751

Modified:
   trunk/utils/check_all_upgrades.sh
Log:
[check-all-upgrades] Fix retrival of :auto version

Modified: trunk/utils/check_all_upgrades.sh
===================================================================
--- trunk/utils/check_all_upgrades.sh	2019-08-21 08:57:18 UTC (rev 17750)
+++ trunk/utils/check_all_upgrades.sh	2019-08-22 06:47:50 UTC (rev 17751)
@@ -17,7 +17,8 @@
 to_version_param="$1"
 to_version=$to_version_param
 if expr $to_version : ':auto' >/dev/null; then
-  to_version=`psql -XAtc "select default_version from pg_available_extensions where name = 'postgis'"`
+  export PGDATABASE=template1
+  to_version=`psql -XAtc "select default_version from pg_available_extensions where name = 'postgis'"` || exit 1
 fi
 
 



More information about the postgis-tickets mailing list