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

Support changing schema from osm #353

Closed rustprooflabs closed 1 year ago

rustprooflabs commented 1 year ago

Details

At one point this project supported custom schema names. That implementation simply renamed the schema after the post-processing completed. When replication support was added, that simple approach broke and I just removed the feature.

I think it makes sense to put that feature back in (--schema=foo with default osm), but do so in a way that works with replication. A simple placeholder w/ a find/replace in the post-processing scripts is probably the way to fix that step. The rest in Lua should be a straightforward variable.

I think I saw someone's fork that already did something like this, I'll try to find that soon. If someone sees this before then and has a good solution, PRs welcome! :100: