[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-231-gb5d1ec457

git at osgeo.org git at osgeo.org
Fri Jan 14 05:11:01 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, master has been updated
       via  b5d1ec4570d759afa61a66bffc396edb84cdfad6 (commit)
       via  bafde33452753a9574d45308098bde0de7741147 (commit)
      from  dd794022afa8924d447702390c6e49c1f52284ca (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 b5d1ec4570d759afa61a66bffc396edb84cdfad6
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Jan 13 23:57:36 2022 +0100

    Test ugprades in absence of old library (cheating)
    
    We are cheating because the geometry_out function is
    NOT being pointed to unexisting library, due to a bug
    in our upgrade procedure which *requires* that function
    to work during upgrade.  See #5046

diff --git a/regress/hooks/hook-before-upgrade.sql b/regress/hooks/hook-before-upgrade.sql
index 5f4678446..2dcddaf4b 100644
--- a/regress/hooks/hook-before-upgrade.sql
+++ b/regress/hooks/hook-before-upgrade.sql
@@ -74,3 +74,13 @@ 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 = probin || '-uninstalled' WHERE probin like '%postgis%'
+-- Some 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
+-- When ticket #5046 is fixed we can ALSO break geometry_out
+AND proname NOT IN ( 'geometry_out')
+;

commit bafde33452753a9574d45308098bde0de7741147
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Jan 14 11:39:43 2022 +0100

    Run topology and raster --before-upgrade hooks *before* the core ones

diff --git a/raster/test/regress/tests.mk b/raster/test/regress/tests.mk
index db11bdd3e..50d0c11ea 100644
--- a/raster/test/regress/tests.mk
+++ b/raster/test/regress/tests.mk
@@ -12,9 +12,10 @@
 
 override RUNTESTFLAGS := $(RUNTESTFLAGS) --raster
 
-RUNTESTFLAGS_INTERNAL += \
+override RUNTESTFLAGS_INTERNAL := \
   --before-upgrade-script $(topsrcdir)/raster/test/regress/hooks/hook-before-upgrade-raster.sql \
-  --after-upgrade-script  $(topsrcdir)/raster/test/regress/hooks/hook-after-upgrade-raster.sql
+  $(RUNTESTFLAGS_INTERNAL) \
+  --after-upgrade-script $(topsrcdir)/raster/test/regress/hooks/hook-after-upgrade-raster.sql
 
 RASTER_TEST_FIRST = \
 	$(topsrcdir)/raster/test/regress/check_gdal \
diff --git a/topology/test/tests.mk b/topology/test/tests.mk
index 63cfaf20c..8255316c4 100644
--- a/topology/test/tests.mk
+++ b/topology/test/tests.mk
@@ -12,9 +12,10 @@
 
 override RUNTESTFLAGS := $(RUNTESTFLAGS) --topology
 
-RUNTESTFLAGS_INTERNAL += \
+override RUNTESTFLAGS_INTERNAL := \
   --before-upgrade-script $(topsrcdir)/topology/test/regress/hooks/hook-before-upgrade-topology.sql \
-  --after-upgrade-script  $(topsrcdir)/topology/test/regress/hooks/hook-after-upgrade-topology.sql
+  $(RUNTESTFLAGS_INTERNAL) \
+  --after-upgrade-script $(topsrcdir)/topology/test/regress/hooks/hook-after-upgrade-topology.sql
 
 TESTS += \
   $(topsrcdir)/topology/test/regress/addedge.sql \

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

Summary of changes:
 raster/test/regress/tests.mk          |  5 +++--
 regress/hooks/hook-before-upgrade.sql | 10 ++++++++++
 topology/test/tests.mk                |  5 +++--
 3 files changed, 16 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list