[postgis-tickets] [SCM] PostGIS branch stable-3.3 updated. 3.3.2-12-g4b2485658

git at osgeo.org git at osgeo.org
Mon Jan 30 09:02:06 PST 2023


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, stable-3.3 has been updated
       via  4b2485658b04aaa75162ab2e3b1d286bc6d716f2 (commit)
      from  69900affe41cb654941e58300829efe352e9a3e1 (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 4b2485658b04aaa75162ab2e3b1d286bc6d716f2
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Jan 30 17:57:07 2023 +0100

    Use scripts_installed for downgrade protection
    
    Closes #5329 in 3.3 branch (3.3.3dev)

diff --git a/NEWS b/NEWS
index 9b1deb9fd..26e902e90 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ YYYY/MM/DD
   - #5299, Corrections to address_standardizer_data_us lex (Regina Obe)
   - #5106, Fix segfault in ST_RemEdgeNewFace/ST_RemEdgeModFace
            when no edge side-faces are found (Sandro Santilli)
+  - #5329, Fix downgrade protection introduced in 3.3.0 (Sandro Santilli)
 
 PostGIS 3.3.2
 2022/11/12
diff --git a/utils/create_upgrade.pl b/utils/create_upgrade.pl
index f941146f9..7d560a0a0 100755
--- a/utils/create_upgrade.pl
+++ b/utils/create_upgrade.pl
@@ -754,25 +754,9 @@ DECLARE
     postgis_upgrade_info RECORD;
     postgis_upgrade_info_func_code TEXT;
 BEGIN
-    --
-    -- This uses postgis_lib_version() rather then
-    -- MODULE_scripts_installed() as in 1.0 because
-    -- in the 1.0 => 1.1 transition that would result
-    -- in an impossible upgrade:
-    --
-    --   from 0.3.0 to 1.1.0
-    --
-    -- Next releases will still be ok as
-    -- postgis_lib_version() and MODULE_scripts_installed()
-    -- would both return actual PostGIS release number.
-    --
-    BEGIN
-        SELECT into old_scripts MODULE_lib_version();
-    EXCEPTION WHEN OTHERS THEN
-        RAISE DEBUG 'Got %', SQLERRM;
-        SELECT into old_scripts MODULE_scripts_installed();
-    END;
-    SELECT into new_scripts 'NEWVERSION';
+
+    old_scripts := MODULE_scripts_installed();
+    new_scripts := 'NEWVERSION';
 
     BEGIN
         new_ver_int := pg_catalog.string_to_array(

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

Summary of changes:
 NEWS                    |  1 +
 utils/create_upgrade.pl | 22 +++-------------------
 2 files changed, 4 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list