<div dir="ltr"><div>Hello,</div><div><br></div><div>I am trying to upload some data from SHP to Postgres. I would like to use a given column of my SHP as primary key in replacement of the id generated by ogr2ogr but I don't manage to have the result I want.</div><div><br></div><div>I used the options -preserve_fid and --config PGSQL_OGR_FID id which gave the following output: I have a column "id" as primary key but it does not contain the value of my SHP but an auto increment value.</div><div><br></div><div>The SHP is not used directly but I do some computations and name changes using a sql statement with the sqlite dialect.</div><div><br></div><div>Any idea on how I could have directly my "id" column as primary key with the values of my input ?<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Alexandre Gacon</div></div></div>