[SCM] PostGIS branch master updated. 3.4.0rc1-808-ga6f4fa828

git at osgeo.org git at osgeo.org
Tue Nov 28 00:15:28 PST 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  a6f4fa8282d3fef7e298f66cb7db96674486f028 (commit)
      from  75a4fb5656d537b06c2cfe61458f9ecace675150 (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 a6f4fa8282d3fef7e298f66cb7db96674486f028
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Nov 28 09:11:30 2023 +0100

    Fix hard-upgrades failing to skip old st_asgeojson signature
    
    Uses "Replaces" comment instead of _postgis_drop_function_by_identity
    function. The latter is only required when the function signature
    remains the same but argument names change. These cases are of no
    interest for postgis_restore because only the signature (and not the
    identity) can be found in PostgreSQL dumps, and so we didn't bother
    to implement support for _postgis_drop_function_by_identity in the
    script that extracts the skip-list for postgis_restore.
    
    Closes #5623

diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index 80eba72c5..69cbb00d5 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -5054,6 +5054,7 @@ CREATE OR REPLACE FUNCTION ST_AsGeoJson(geom geometry, maxdecimaldigits integer
 
 -- Availability: 3.0.0
 -- Changed: 3.5.0 add id_column='' parameter
+-- Replaces ST_AsGeoJson(record, text, integer, bool) deprecated in 3.5.0
 CREATE OR REPLACE FUNCTION ST_AsGeoJson(r record, geom_column text DEFAULT '', maxdecimaldigits integer DEFAULT 9, pretty_bool boolean DEFAULT false, id_column text DEFAULT '')
 	RETURNS text
 	AS 'MODULE_PATHNAME','ST_AsGeoJsonRow'
diff --git a/postgis/postgis_before_upgrade.sql b/postgis/postgis_before_upgrade.sql
index 56484b1af..206969f40 100644
--- a/postgis/postgis_before_upgrade.sql
+++ b/postgis/postgis_before_upgrade.sql
@@ -172,10 +172,3 @@ BEGIN
 		END IF;
 END;
 $$;
-
--- FUNCTION ST_AsGeoJson added `id_column` optional argument in 3.5.0.
-SELECT _postgis_drop_function_by_identity
-	(
-	'ST_AsGeoJson',
-	'r record, geom_column text, maxdecimaldigits integer, pretty_bool boolean'
-	);

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

Summary of changes:
 postgis/postgis.sql.in             | 1 +
 postgis/postgis_before_upgrade.sql | 7 -------
 2 files changed, 1 insertion(+), 7 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list