[Tile-serving] [osm2pgsql-dev/osm2pgsql] Add max_id optimization to output tables (Issue #2359)

Jochen Topf notifications at github.com
Fri Jul 18 19:12:32 UTC 2025


joto created an issue (osm2pgsql-dev/osm2pgsql#2359)

In the pgsql middle we [get the maximum id](https://github.com/osm2pgsql-dev/osm2pgsql/blob/master/src/middle-pgsql.cpp#L113-L123) used for all of the tables when updating. Then we know that we don't need to DELETE any objects with an id larger than this.

This optimization should also be done on all the output tables.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2359
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/issues/2359 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250718/e2ba921b/attachment.htm>


More information about the Tile-serving mailing list