[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0rc1-99-ge27edc502

git at osgeo.org git at osgeo.org
Fri Sep 1 01:07:54 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  e27edc5029c6199d5e8f89793928ac593f41544d (commit)
      from  16db45e4a2bcf4ab276305794dc3dbfee7b8b1a5 (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 e27edc5029c6199d5e8f89793928ac593f41544d
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Aug 31 21:55:18 2023 +0200

    Have run_test.pl hint about what might be missing from upgrade drop

diff --git a/regress/run_test.pl b/regress/run_test.pl
index a9cce2a56..30e576cdd 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -2061,6 +2061,29 @@ sub uninstall_spatial
 	if ( $OBJ_COUNT_POST != $OBJ_COUNT_PRE )
 	{
 		fail("Object count pre-install ($OBJ_COUNT_PRE) != post-uninstall ($OBJ_COUNT_POST)");
+
+        if ( $OPT_UPGRADE_FROM )
+        {
+            my $fromversion = $OPT_UPGRADE_FROM;
+            $fromversion =~ s/unpackaged//;
+            print
+                "\n-------------------------------------------------\n",
+                "Need to add these to an after_upgrade.sql script?",
+                "\n-------------------------------------------------\n",
+                sql("
+SELECT format(
+    'SELECT _postgis_drop_function_by_identity(%L, %L, %L);',
+    proname,
+    pg_catalog.pg_get_function_identity_arguments(oid),
+    '$fromversion'
+)
+FROM pg_proc
+WHERE pronamespace = '${OPT_SCHEMA}'::regnamespace
+ORDER BY 1;
+                "),
+                "\n-------------------------------------------------\n",
+        }
+
 		return 0;
 	}
 

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

Summary of changes:
 regress/run_test.pl | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list