[Qgis-developer] Integer instead of serial on gid column when using SPIT plugin to export shapefile

Ivan Mincik ivan.mincik at gmail.com
Sat Apr 17 04:33:47 EDT 2010


Hi,
is there any good reason why SPIT plugin is assigning  'integer'  data
type to primary key column (gid) instead of 'serial' data type when
exporting shapefile to PostGIS?

Such created table is not usable for clients expecting auto increment
value on 'gid' column and it also differs from standard shp2pgsql
tool.
In QGIS both data types are working. If there is no serious reason for
'integer', is it possible to switch to 'serial' data type ?

Ivan


More information about the Qgis-developer mailing list