[SCM] PostGIS branch master updated. 3.6.0rc2-490-g5001c5165
git at osgeo.org
git at osgeo.org
Thu May 28 05:56:06 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, master has been updated
via 5001c51659429ac9fe07723f18ece81a7cbd2deb (commit)
from 706d43bea8fe7501142145bf9e94a49263b903db (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 5001c51659429ac9fe07723f18ece81a7cbd2deb
Author: Sandro Santilli <strk at kbt.io>
Date: Thu May 28 14:34:29 2026 +0200
Give terse error from CreateTopology when target already exists
Also avoids incrementing topology sequence in those cases.
Closes #5860
diff --git a/topology/sql/manage/CreateTopology.sql.in b/topology/sql/manage/CreateTopology.sql.in
index 5fafa474f..7c82277ae 100644
--- a/topology/sql/manage/CreateTopology.sql.in
+++ b/topology/sql/manage/CreateTopology.sql.in
@@ -38,10 +38,10 @@ DECLARE
dataColumnType TEXT := 'INT4';
BEGIN
--- FOR rec IN SELECT * FROM pg_namespace WHERE text(nspname) = atopology
--- LOOP
--- RAISE EXCEPTION 'SQL/MM Spatial exception - schema already exists';
--- END LOOP;
+ FOR rec IN SELECT * FROM pg_namespace WHERE text(nspname) = atopology
+ LOOP
+ RAISE EXCEPTION 'schema "%" already exists', atopology;
+ END LOOP;
-- Prevent negative
IF topoid < 0 THEN
-----------------------------------------------------------------------
Summary of changes:
topology/sql/manage/CreateTopology.sql.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list