[Tile-serving] [openstreetmap/osm2pgsql] Something wrong with indexes during import (#1436)

Jochen Topf notifications at github.com
Fri Mar 26 15:39:15 UTC 2021


In your `osm2pgsql.process_way` function you basically write all ways into the `lines` table in stage 1 **and** stage 2. In stage 2 you will see all ways that are part of a boundary relation again. Those are a lot of ways and they will all get deleted from the `lines` table and then re-inserted. This is, of course, unnecessary, because the resulting entry in the table will be the same, but osm2pgsql doesn't know that. You can check `osm2pgsql.stage == 1` to avoid that.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1436#issuecomment-808318038
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210326/8ac413f7/attachment.htm>


More information about the Tile-serving mailing list