[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.6-14-gbddde7f6f

git at osgeo.org git at osgeo.org
Fri Aug 12 10:01:11 PDT 2022


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.1 has been updated
       via  bddde7f6ff8e970c0e55b4ddbad04c9444e4e479 (commit)
      from  12a3bde55859c3829ef0bcf447f224793a013acc (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 bddde7f6ff8e970c0e55b4ddbad04c9444e4e479
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Aug 12 18:36:18 2022 +0200

    Survive upgrades adding operator class (and other object kinds)
    
    References #5187 in 3.1 branch (3.1.7dev)

diff --git a/utils/create_unpackaged.pl b/utils/create_unpackaged.pl
index 60e5ea171..b17de87f7 100755
--- a/utils/create_unpackaged.pl
+++ b/utils/create_unpackaged.pl
@@ -161,10 +161,11 @@ WHEN object_not_in_prerequisite_state THEN
     RAISE EXCEPTION '%', SQLERRM;
   END IF;
 WHEN
-	undefined_function
+	undefined_function OR
+	undefined_object
 	-- TODO: handle more exceptions ?
 THEN
-	RAISE NOTICE 'undefined function $obj';
+	RAISE NOTICE 'Object $obj does not exist yet';
 WHEN OTHERS THEN
 	RAISE EXCEPTION 'Trying to add $obj to $extname, got % (%)', SQLERRM, SQLSTATE;
 END;

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

Summary of changes:
 utils/create_unpackaged.pl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list