[SCM] PostGIS branch stable-3.6 updated. 3.6.2-11-gdaf6a4fd2

git at osgeo.org git at osgeo.org
Mon Mar 23 09:43:37 PDT 2026


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, stable-3.6 has been updated
       via  daf6a4fd267c0ba50598de359789ef7296dc1c1d (commit)
      from  4728189d613fa7f0b7d8edd8534d02c3a82683bd (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 daf6a4fd267c0ba50598de359789ef7296dc1c1d
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Mar 23 09:43:16 2026 -0700

    Fully quality calls to helper functions
    references #6060

diff --git a/NEWS b/NEWS
index e8519f017..5078062b0 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,7 @@ topogeometry corruption:
          and Daniel Bakker
 - GH-850 Use quote_identifier to build tables in pgis_tablefromflatgeobuf (Ariel Mashraki)
 - #6058, Use Pg composite_to_json() function in 19+ (Paul Ramsey)
+- #6060, fully quality calls to helper functions (Paul Ramsey)
 
 
 
diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index 398031528..1df639e7c 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -2251,18 +2251,18 @@ BEGIN
 			IF use_typmod THEN
 				BEGIN
 					EXECUTE 'ALTER TABLE ' || quote_ident(gcs.nspname) || '.' || quote_ident(gcs.relname) || ' ALTER COLUMN ' || quote_ident(gcs.attname) ||
-						' TYPE geometry(' || postgis_type_name(gtype, gndims, true) || ', ' || gsrid::text  || ') ';
+						' TYPE geometry(' || @extschema at .postgis_type_name(gtype, gndims, true) || ', ' || gsrid::text  || ') ';
 					inserted := inserted + 1;
 				EXCEPTION
 						WHEN invalid_parameter_value OR feature_not_supported THEN
-						RAISE WARNING 'Could not convert ''%'' in ''%.%'' to use typmod with srid %, type %: %', quote_ident(gcs.attname), quote_ident(gcs.nspname), quote_ident(gcs.relname), gsrid, postgis_type_name(gtype, gndims, true), SQLERRM;
+						RAISE WARNING 'Could not convert ''%'' in ''%.%'' to use typmod with srid %, type %: %', quote_ident(gcs.attname), quote_ident(gcs.nspname), quote_ident(gcs.relname), gsrid, @extschema at .postgis_type_name(gtype, gndims, true), SQLERRM;
 							gc_is_valid := false;
 				END;
 
 			ELSE
 				-- Try to apply srid check to column
 				constraint_successful = false;
-				IF (gsrid > 0 AND postgis_constraint_srid(gcs.nspname, gcs.relname,gcs.attname) IS NULL ) THEN
+				IF (gsrid > 0 AND @extschema at .postgis_constraint_srid(gcs.nspname, gcs.relname,gcs.attname) IS NULL ) THEN
 					BEGIN
 						EXECUTE 'ALTER TABLE ONLY ' || quote_ident(gcs.nspname) || '.' || quote_ident(gcs.relname) ||
 								 ' ADD CONSTRAINT ' || quote_ident('enforce_srid_' || gcs.attname) ||
@@ -2276,7 +2276,7 @@ BEGIN
 				END IF;
 
 				-- Try to apply ndims check to column
-				IF (gndims IS NOT NULL AND postgis_constraint_dims(gcs.nspname, gcs.relname,gcs.attname) IS NULL ) THEN
+				IF (gndims IS NOT NULL AND @extschema at .postgis_constraint_dims(gcs.nspname, gcs.relname,gcs.attname) IS NULL ) THEN
 					BEGIN
 						EXECUTE 'ALTER TABLE ONLY ' || quote_ident(gcs.nspname) || '.' || quote_ident(gcs.relname) || '
 								 ADD CONSTRAINT ' || quote_ident('enforce_dims_' || gcs.attname) || '
@@ -2290,7 +2290,7 @@ BEGIN
 				END IF;
 
 				-- Try to apply geometrytype check to column
-				IF (gtype IS NOT NULL AND postgis_constraint_type(gcs.nspname, gcs.relname,gcs.attname) IS NULL ) THEN
+				IF (gtype IS NOT NULL AND @extschema at .postgis_constraint_type(gcs.nspname, gcs.relname,gcs.attname) IS NULL ) THEN
 					BEGIN
 						EXECUTE 'ALTER TABLE ONLY ' || quote_ident(gcs.nspname) || '.' || quote_ident(gcs.relname) || '
 						ADD CONSTRAINT ' || quote_ident('enforce_geotype_' || gcs.attname) || '
@@ -2347,7 +2347,7 @@ DECLARE
 BEGIN
 
 	-- Verify geometry type
-	IF (postgis_type_name(new_type,new_dim) IS NULL )
+	IF (@extschema at .postgis_type_name(new_type,new_dim) IS NULL )
 	THEN
 		RAISE EXCEPTION 'Invalid type name "%(%)" - valid ones are:
 	POINT, MULTIPOINT,
@@ -2752,7 +2752,7 @@ BEGIN
 		END IF;
 	END IF;
 
-	IF postgis_constraint_srid(real_schema, table_name, column_name) IS NOT NULL THEN
+	IF @extschema at .postgis_constraint_srid(real_schema, table_name, column_name) IS NOT NULL THEN
 	-- srid was enforced with constraints before, keep it that way.
 		-- Make up constraint name
 		cname = 'enforce_srid_'  || column_name;

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

Summary of changes:
 NEWS                   |  1 +
 postgis/postgis.sql.in | 14 +++++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list