rustprooflabs / pgosm-flex

PgOSM Flex provides high quality OpenStreetMap datasets in PostGIS (Postgres) using the osm2pgsql Flex output.
MIT License
100 stars 20 forks source link

Update styles to create unique indexes from Lua instead of PKs from SQL. #380

Closed rustprooflabs closed 4 months ago

rustprooflabs commented 5 months ago

Implement new functionality from https://github.com/osm2pgsql-dev/osm2pgsql/pull/2170 to define unique indexes in the Lua. While I prefer the semantics hinted through a primary key, there's no functional difference.

Through this change I noticed a number of tables were missing PKs in the prior method, so overall this should enforce slightly better data quality.