Replies: 1 comment 3 replies
-
|
Do you actually have duplicate rows or just duplicate ids? Several rows with the same id can happen in an osm2pgsql databases, due to long linestring being split into shorter parts or multipolygons being split into their constituent polygons. If you have actual duplicate rows, where the whole rows are identical, then that would mean there is a bug somewhere. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've found a few duplicated rows in the planet_osm_roads table on one of the world databases.
This database is quite old, and has been updated using diff for several years.
They all happened on geometries originating from relations (boundaries, etc).
I've not yet checked the line and polygon tables.
I discovered that by trying to create a unique index on these tables in order to be able to use pg_repack to vacuum/cluster these tables without global lock.
Beta Was this translation helpful? Give feedback.
All reactions