<br>Normand,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Why not let Postgresql manage that?  I mean insert a feature with no id at all and retrieve the last inserted value from the layer sequence table.  This is what I did to make Alexandre Tinyows version works.  What do you think? </blockquote>
<div><br>Yes i&#39;m agree on that !<br>I&#39;ve begin to wrote some code on this base (not yet commited)<br><br>But it will only be good if there&#39;s a PostgreSQL sequence related to<br>a PK column.<br><br>So on the other case, i (yet) don&#39;t have magical thought to handle that<br>
(except a random generator)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> If you want I could send you what I did.</blockquote>
<div><br>Yes please ! :)<br> <br>--<br>Olivier<br></div></div>