[postgis-devel] [PostGIS] #2080: CopyTopology fails to set layer sequence

PostGIS trac at osgeo.org
Sat Nov 3 15:15:20 PDT 2012

#2080: CopyTopology fails to set layer sequence
 Reporter:  strk      |       Owner:  strk         
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.2
Component:  topology  |     Version:  2.0.x        
 Keywords:            |  
 After running CopyTopology against a topology with one layer, adding
 another layer (AddTopoGeometryColumn) fails with :
 ERROR:  duplicate key value violates unique constraint "layer_pkey"

 I suspect this is due to a failure in updating the layer_id sequence.

 If I recall correctly a testcase was found to fail but we hushed it down.
 Robe, remember ? It was about 9.1 doing something differently with
 sequences... I'm indeed running 9.1 now.

Ticket URL: <http://trac.osgeo.org/postgis/ticket/2080>
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-devel mailing list