Opened 4 days ago

#5860 new enhancement

Improve CreateTopology error message when topology already exists

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 3.5.3
Component: topology Version: 3.4.x
Keywords: Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.