[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0rc1-703-ge95585d9c

git at osgeo.org git at osgeo.org
Wed Oct 18 03:45:21 PDT 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, master has been updated
       via  e95585d9c83691c17bbad361ed3c76465426061d (commit)
      from  4573903191819ba7d1b1351792bbb417196f68d8 (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 e95585d9c83691c17bbad361ed3c76465426061d
Author: Sandro Santilli <strk at kbt.io>
Date:   Wed Oct 18 12:42:01 2023 +0200

    Fix deprecation of functions taking deprecated types

diff --git a/postgis/common_before_upgrade.sql b/postgis/common_before_upgrade.sql
index 29b9f59fe..6492a5778 100644
--- a/postgis/common_before_upgrade.sql
+++ b/postgis/common_before_upgrade.sql
@@ -102,9 +102,15 @@ BEGIN
 		INTO proc;
 
 	EXCEPTION
-	WHEN undefined_function THEN
+	WHEN undefined_function OR undefined_object THEN
 		RAISE DEBUG 'Deprecated function % does not exist', function_signature;
 		RETURN;
+	WHEN others THEN
+		GET STACKED DIAGNOSTICS detail := PG_EXCEPTION_DETAIL;
+		RAISE WARNING 'Could not check deprecated function % existance, got % (%), assuming it does not exist',
+			function_signature, SQLERRM, SQLSTATE
+		USING DETAIL = detail;
+		RETURN;
 	END;
 
 	sql := pg_catalog.format(

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

Summary of changes:
 postgis/common_before_upgrade.sql | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list