[postgis-tickets] [SCM] PostGIS branch test-upgrades-in-absence-of-old-library created. 3.2.0-229-g0fcd0e48e

git at osgeo.org git at osgeo.org
Thu Jan 13 14:58:12 PST 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, test-upgrades-in-absence-of-old-library has been created
        at  0fcd0e48e31ac1e0b2e245eddbd00334d4151c52 (commit)

- Log -----------------------------------------------------------------
commit 0fcd0e48e31ac1e0b2e245eddbd00334d4151c52
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Jan 13 23:57:36 2022 +0100

    Test ugprades in absence of old library
    
    See #5046

diff --git a/regress/hooks/hook-before-upgrade.sql b/regress/hooks/hook-before-upgrade.sql
index 5f4678446..20bb6a53c 100644
--- a/regress/hooks/hook-before-upgrade.sql
+++ b/regress/hooks/hook-before-upgrade.sql
@@ -74,3 +74,17 @@ SELECT
 	ST_DWithin(g1::text, g1::text, 1) as text_dwithin,
 	ST_DWithin(g2, g2, 1) as geography_dwithin
 FROM upgrade_test;
+
+-- Break probin of all postgis functions, as we expect
+-- the upgrade procedure to replace them all
+UPDATE pg_proc SET probin = 'nonexistent' WHERE probin like '%postgis%'
+-- These function have DEFAULT values for GEOMETRY type, which
+-- makes pg_get_function_arguments choke. This should be fixed!
+-- See https://trac.osgeo.org/postgis/ticket/5046#comment:5
+AND proname NOT IN (
+	'st_tileenvelope'
+)
+AND proname NOT IN (
+	'geometry_out'
+)
+;

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list