[SCM] PostGIS branch master updated. 3.6.0rc2-12-g3ea4508d8

git at osgeo.org git at osgeo.org
Tue Aug 26 03:51:19 PDT 2025


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  3ea4508d80bef85ddd242230eb12d5c3ec5f08df (commit)
      from  fb9111a1aa5ad3c24e022f0daeb9f34bc95aaa45 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3ea4508d80bef85ddd242230eb12d5c3ec5f08df
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Aug 26 12:50:16 2025 +0200

    Have check_all_downgrades.sh :auto check all versions as targets
    
    It shows how 3.3.5 downgrades are unprotected, for example, while
    3.3.6dev are...

diff --git a/utils/check_all_downgrades.sh b/utils/check_all_downgrades.sh
index d7f002227..45b9c48f4 100755
--- a/utils/check_all_downgrades.sh
+++ b/utils/check_all_downgrades.sh
@@ -7,7 +7,6 @@ TMPDIR=/tmp/check_all_upgrades-$$-tmp
 PGVER=`pg_config --version | awk '{print $2}'`
 PGVER_MAJOR=$(echo "${PGVER}" | sed 's/\.[^\.]*//' | sed 's/\(alpha\|beta\|rc\).*//' )
 SKIP_LABEL_REGEXP=
-echo "INFO: PostgreSQL version: ${PGVER} [${PGVER_MAJOR}]"
 MAKE=$(which gmake make | head -1)
 BUILDDIR=$PWD # TODO: allow override ?
 
@@ -183,14 +182,26 @@ check_downgrade()
   fi
 }
 
+
 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'"` || exit 1
-elif expr $to_version : '.*!$' >/dev/null; then
-  to_version=$(echo "${to_version}" | sed 's/\!$//')
+  ARGS=
+  if test -n "${SKIP_LABEL_REGEXP}"; then
+    ARGS="${ARGS} --skip ${SKIP_LABEL_REGEXP}"
+  fi
+  if test $EXIT_ON_FIRST_FAILURE != 0; then
+    ARGS="${ARGS} -s"
+  fi
+  for version in $(
+    psql -XAtc "select version from pg_available_extension_versions where name = 'postgis' and version ~ '^[0-9]'"
+  ); do
+    $0 ${ARGS} ${version} || failed
+  done
+  exit $failures
 fi
 
 
+echo "INFO: PostgreSQL version: ${PGVER} [${PGVER_MAJOR}]"
 PGIS_MIN_VERSION=`minimum_postgis_version_for_postgresql_major_version "${PGVER_MAJOR}"`
 echo "INFO: minimum PostGIS version supporting PostgreSQL ${PGVER_MAJOR}: ${PGIS_MIN_VERSION}"
 

-----------------------------------------------------------------------

Summary of changes:
 utils/check_all_downgrades.sh | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list