Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osm2pgsql 2.0.0 #191244

Merged
merged 2 commits into from
Sep 19, 2024
Merged

osm2pgsql 2.0.0 #191244

merged 2 commits into from
Sep 19, 2024

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
The day has finally arrived where we are releasing version 2.0.0. of osm2pgsql, five years after the release of 1.0.0.

This release marks a milestone in modernizing osm2pgsql. We removed a lot of accumulated cruft from more than a decade of development. This makes osm2pgsql easier to understand for users and for developers. And it has allowed us to solve some long-standing issues and will allow further improvements in the future.

Major breaking changes:

  • The legacy format for the middle tables has been removed as well as the old non-bucket way node index.
  • The gazetteer output (used by Nominatim) has been removed.
  • Several command line options have been removed and others are checked more strictly.
  • There are some new library requirements and Lua is not optional any more.
  • The add_row() function in the flex Lua config has been removed, use insert() instead.
  • Check that Lua functions on OSM object are called correctly using the colon-syntax.
  • Handling of untagged objects and object attributes has changed.

Please see the Upgrading appendix for the details of these changes. We suggest you update to version 1.11.0 first and resolve any issues you see there before upgrading to version 2.0.0.

This is the first release that deprecates the "pgsql" output, please start moving towards the "flex" output instead. See this FAQ entry for the details.

New features in the flex output:

  • Two-stage processing now also supports node members of relations, not only way members
  • Optionally build id index as unique index
  • Allow setting the names of indexes in the database
  • New after_nodes|ways|relations() processing functions in flex Lua config files
  • Make osm2pgsql properties available in Lua in osm2pgsql.properties table
  • Add get_bbox() function to geometries in Lua
  • Allow empty config file in flex output, useful for some corner uses

Changes in the generalization code:

  • Add tile-based generalizer calling SQL commands
  • Fix: Do not run ANALYZE in append mode, autovacuum will do that for us
  • Fix: Handle errors in threads correctly stopping the program with an error message

Other fixes and features:

  • Make --flat-nodes also work in non-slim mode, useful if memory is tight
  • Fix off-by-one error in expire code generating out of bounds tiles
  • Property changes are stored later to database to avoid changing the database if anything breaks
  • Report (up to 100) missing nodes in the input file (in debug log)
  • Simplified code for area assembly from multipolygon relations
  • Replication: guess state from file when state info is not available
  • Flush and close COPYs after nodes, ways, and relations in flex output avoid COPYs that are open for a long time
  • Remove special case for old PostGIS versions when clustering
  • Avoid looking for parents of new nodes and ways in the database middle speeding up changes
  • As always: Lots of code cleanups, refactorings and small fixes

@github-actions github-actions bot added lua Lua use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` boost Boost use is a significant feature of the PR or issue labels Sep 19, 2024
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Sep 19, 2024
@BrewTestBot BrewTestBot added this pull request to the merge queue Sep 19, 2024
Merged via the queue into master with commit fa3d410 Sep 19, 2024
15 checks passed
@BrewTestBot BrewTestBot deleted the bump-osm2pgsql-2.0.0 branch September 19, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
boost Boost use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. lua Lua use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants