<div dir="ltr"><div><div><div><div><div><div><div>Hello, <br><br></div>Is there a way to avoid that QGis autoincrement the integer key of a Postgis table?<br><br></div>I have a simple Postgis table that has a valuable integer key.<br>
CREATE TABLE test.arret<br>(<br>  geom geometry,<br>  ide integer NOT NULL,<br>  nom_arret character varying(36),<br>  CONSTRAINT arret_pkey PRIMARY KEY (ide),<br>  CONSTRAINT enforce_dims_geom CHECK (st_ndims(geom) = 2),<br>
  CONSTRAINT enforce_geotype_geom CHECK (geometrytype(geom) = 'POINT'::text OR geom IS NULL),<br>  CONSTRAINT enforce_srid_geom CHECK (st_srid(geom) = 2154)<br>)<br>WITH (<br>  OIDS=TRUE<br>);<br></div><br>I want to enter the value of the key when I create a new point and it is not possible with QGis (1.7.4).<br>
</div></div>When I create a new point and give it a value ide=1664, when the point is saved in the database, the key is auto incremented and my value is ignored.<br><br></div>This behavior is not logical<br>Is there a way to put and integer key the value that is needed?<br>
<br></div><div>Thanks for your help<br><br></div><div>Fabrice<br></div><div><br><br></div><div><br></div><br><div><div><div><div><br></div></div></div></div></div>