1set client_min_messages to ERROR;
2-- Drop corrupted topology (with missing layer tables)
3-- See http://trac.osgeo.org/postgis/ticket/3016
4SELECT topology.CreateTopology('t1') > 0;
5CREATE TABLE t1f (id int);
6SELECT topology.AddTopoGeometryColumn('t1', 'public', 't1f', 'geom_t1', 'LINE') > 0;
7DROP TABLE t1.relation;
8SELECT topology.DropTopoGeometryColumn('public','t1f','geom_t1');
9DROP TABLE t1f;
10SELECT topology.DropTopology('t1');
11