Hi all<br>
<br>
While using the Create_graph_tables function for integrating pgdijkstra with postgreSQL i am encountering the following error:<br>
I am directly using the demo datafiles(from cartoweb, hence i dont think there&nbsp; is any problem with the data). <br>
Also, before doing this, i created source and target fields in the
database by adding three new columns and using assign_vertex_id.<br>
<br>
can someone help, please...<br>
<br>
NOTICE:&nbsp; CREATE TABLE will create implicit sequence &quot;roadl_vertices_id_seq&quot; for serial column &quot;roadl_vertices.id&quot;<br>
CONTEXT:&nbsp; SQL statement &quot;CREATE TABLE roadl_vertices (id serial, geom_id int4&nbsp; NOT NULL UNIQUE)&quot;<br>
PL/pgSQL function &quot;create_graph_tables&quot; line 11 at execute statement<br>
<br>
NOTICE:&nbsp; CREATE TABLE / UNIQUE will create implicit index &quot;roadl_vertices_geom_id_key&quot; for table &quot;roadl_vertices&quot;<br>
CONTEXT:&nbsp; SQL statement &quot;CREATE TABLE roadl_vertices (id serial, geom_id int4&nbsp; NOT NULL UNIQUE)&quot;<br>
PL/pgSQL function &quot;create_graph_tables&quot; line 11 at execute statement<br>
<br>
NOTICE:&nbsp; CREATE TABLE will create implicit sequence &quot;roadl_edges_id_seq&quot; for serial column &quot;roadl_edges.id&quot;<br>
CONTEXT:&nbsp; SQL statement &quot;CREATE TABLE roadl_edges (id serial,
source int, target int, cost float8, reverse_cost float8, UNIQUE
(source, target))&quot;<br>
PL/pgSQL function &quot;create_graph_tables&quot; line 15 at execute statement<br>
<br>
NOTICE:&nbsp; CREATE TABLE / UNIQUE will create implicit index &quot;roadl_edges_source_key&quot; for table &quot;roadl_edges&quot;<br>
CONTEXT:&nbsp; SQL statement &quot;CREATE TABLE roadl_edges (id serial,
source int, target int, cost float8, reverse_cost float8, UNIQUE
(source, target))&quot;<br>
PL/pgSQL function &quot;create_graph_tables&quot; line 15 at execute statement<br>
<br style="background-color: rgb(255, 255, 51);">
<span style="background-color: rgb(255, 255, 51);">ERROR:&nbsp; duplicate key violates unique constraint &quot;roadl_edges_source_key&quot;&nbsp; </span><br>
CONTEXT:&nbsp; SQL statement &quot;INSERT INTO roadl_edges (id, source, target) VALUES (91, '107', '109')&quot;<br>
PL/pgSQL function &quot;create_graph_tables&quot; line 27 at execute statement<br>
<br>
Thanks in advance,<br>
Horry<br>