[Qgis-user] nextval

Bernhard Ströbl bernhard.stroebl at jena.de
Wed Sep 12 22:42:05 PDT 2012


Hi Dario,

QGIS 1.8 does not autonumber the gid for you (as previous versions did). 
In order to get autonumbering you have to have a sequence in your 
database (CREATE SEQUENCE your_sequence_name;). You can then set the 
default value of your gid field (in the database) to 
nextval('your_sequence_name'). Nothing to do in QGIS, just leave the gid 
field empty.

hope this helps

Bernhard

Am 13.09.2012 00:53, schrieb Dario:
> I am with the following problem:
> when copying a feature of a shape layer and paste in a layer postgres,
> the variable "nextval" gid column does not work. not automatically
> populates the sequence of numerical gid column.
> in qgis 1.6 functioned normally.
>
>


__________ Information from ESET Mail Security, version of virus signature database 7472 (20120912) __________

The message was checked by ESET Mail Security.
http://www.eset.com





More information about the Qgis-user mailing list