[PostGIS] #5860: Improve CreateTopology error message when topology already exists

PostGIS trac at osgeo.org
Wed Mar 12 03:25:19 PDT 2025


#5860: Improve CreateTopology error message when topology already exists
-------------------------+---------------------------
 Reporter:  strk         |      Owner:  strk
     Type:  enhancement  |     Status:  new
 Priority:  medium       |  Milestone:  PostGIS 3.5.3
Component:  topology     |    Version:  3.4.x
 Keywords:               |
-------------------------+---------------------------
 At the moment calling CreateTopology with a name of an already existing
 topology makes a lot of noise. It would be nice to have a nicely readable
 error message instead.

 The noisy part is the CONTEXT:
 {{{
 ERROR:  schema "t5859" already exists
 CONTEXT:  SQL statement "
       CREATE SCHEMA t5859;
 }}}

 as the context is a really big SQL query.
 The function could autonomously check or intercept the exception and be
 more succint instead.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5860>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list