From ae4eb1a925a6c8d1320d0fe605c3e9f160775fc0 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey <edwardchalstrey@gmail.com> Date: Fri, 8 Apr 2022 12:11:56 +0100 Subject: [PATCH] fix sql mistake --- etl/load_geometries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etl/load_geometries.sh b/etl/load_geometries.sh index 69792da1..18cfca63 100755 --- a/etl/load_geometries.sh +++ b/etl/load_geometries.sh @@ -26,7 +26,7 @@ parallel \ cat {} '|' psql -c "\"COPY release_geometries ( geometry_geom, source_id ) FROM stdin WITH CSV HEADER;\"" # Copy release_geometries into existing geometries table -psql -c "INSERT INTO geometries SELECT * FROM release_geometries;" +psql -c "INSERT INTO geometries ( geometry_geom, source_id ) SELECT geometry_geom, source_id FROM release_geometries;" # Delete any duplicated geometries (by TOID) echo "Delete duplicate geometries..."