[SCM] PostGIS branch stable-3.4 updated. 3.4.5-12-g082500dfb
git at osgeo.org
git at osgeo.org
Mon Mar 23 09:45:22 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.4 has been updated
via 082500dfb81518dd16746e34fba4c2ca81d4bac4 (commit)
from c8f4d72ea474b30b6e2b6271d26c3eed8c3e2ef9 (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 082500dfb81518dd16746e34fba4c2ca81d4bac4
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Mar 23 09:45:01 2026 -0700
Fully quality calls to helper functions
References #6060
diff --git a/NEWS b/NEWS
index 53bef2aeb..941b52c53 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Proj 6.1+ required.
Reported by Sven Klemm (Tiger Data), Allistair Ishmael Hakim (allistair.sh)
and Daniel Bakker
- GH-850 Use quote_identifier to build tables in pgis_tablefromflatgeobuf (Ariel Mashraki)
+ - #6060, fully quality calls to helper functions (Paul Ramsey)
PostGIS 3.4.5
diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index f1175e101..27656e07c 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -2278,18 +2278,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) ||
@@ -2303,7 +2303,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) || '
@@ -2317,7 +2317,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) || '
@@ -2374,7 +2374,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,
@@ -2779,7 +2779,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