osm2pgsql
Importer for OpenStreetMap data into PostgreSQL
osm2pgsql is rebuilding tile expiry so a small edit stops invalidating a whole lake.
◆Recent moves
- 1mo ago
2.3.1 fixes a diff-expire segfault with multiple expire outputs
A bugfix release for a segfault in the new diff expire path when a table has multiple expire outputs, plus a man page installation fix. The first fallout from 2.3.0's expiry rework, arriving less than a month later.
View source ↗ - 1mo ago
Diff expire invalidates only the tiles a change actually touched
⚡ SPARKThe expiry rework this release line was building toward: shape-aware polygon expiry, opt-in diff expire based on the symmetric difference between old and new geometry, and hard limits on how many tiles a single run can invalidate. Together with the standalone style tester, it is the most consequential release in this window.
View source ↗ - 10mo ago
Locators and deleted-object callbacks land as new primitives
⚡ SPARKIntroduces two building blocks the project expects to unlock long-requested features: Locators for testing geometries against named regions during import, and process_deleted_* Lua callbacks for handling removed objects. Sets up the pattern the 2.3.0 expiry work follows, moving work out of the database and into the import pipeline.
View source ↗ - 1y ago
2.1.1 refuses to update when the flatnode file is missing
Two fixes: refusing to update a database when the flatnode file is absent, which prevents silent corruption, and a regression writing to tables without a managed id column. Small, but the flatnode guard is the kind of check that saves an import.
View source ↗ - 1y ago
2.1.0 makes prepared statements work with connection poolers
Switches to protocol-level prepared statements instead of PREPARE SQL commands so osm2pgsql works behind connection poolers and database middleware, and adds an option to create a primary key on flex tables. A deployment-compatibility release rather than a feature one.
View source ↗ - 1y ago
2.0.1 fixes schema forwarding and missing binary installation
Three small packaging and installation fixes following 2.0.0: the --schema parameter not being forwarded from osm2pgsql-replication, a function installed into the wrong schema, and the osm2pgsql-gen binary not being installed by default.
View source ↗