pour restart la sequence node id

This commit is contained in:
mael 2019-09-21 10:21:37 +02:00
parent 769db361d9
commit ace0deb9b4

View file

@ -18,6 +18,9 @@ TRUNCATE TABLE osm_roads_pgr ;
TRUNCATE TABLE osm_roads_pgr_noded ; TRUNCATE TABLE osm_roads_pgr_noded ;
TRUNCATE TABLE osm_roads_pgr_vertices_pgr ; TRUNCATE TABLE osm_roads_pgr_vertices_pgr ;
-- reset de la sequence
ALTER SEQUENCE public.osm_roads_pgr_noded_id_seq RESTART WITH 1 ;
-- on remplit la couche de lignes -- on remplit la couche de lignes
INSERT INTO osm_roads_pgr INSERT INTO osm_roads_pgr
( SELECT ( SELECT