DropTopology can drop the topology extension
|Reported by:||Mike Taves||Owned by:||strk|
On a test database, try the following:
CREATE EXTENSION postgis_topology; SELECT topology.DropTopology('this does not exist'); -- Topology 'this does not exist' dropped SELECT topology.DropTopology('topology'); -- Topology 'topology' dropped
DropTopology on a non-existing topology shows a misleading message. Either the return value should indicate that the topology does not exist or an exception should be raised.
DropTopology kills the topology extension with
DROP SCHEMA '||quote_ident(atopology)||' CASCADE, which should have been avoided as
topology does not have a
topoid. This can be disastrous.