[Tile-serving] [osm2pgsql-dev/osm2pgsql] Can `osm2pgsql-replication init` be used with an extract from osmium-tags-filter? (Discussion #2263)
William Edmisten
notifications at github.com
Sat Oct 5 14:33:57 UTC 2024
Hello! I want to keep an updated database of all restaurants on the planet. My current approach is to use [osmium-tags-filter](https://docs.osmcode.org/osmium/latest/osmium-tags-filter.html) to filter the planet file in order to get a filtered PBF containing just the restaurants. This is significantly faster than filtering the data in osm2pgsql.
I'm wondering if using this extract with osm2pgsql-replication and the [regular planet replication URL](https://planet.osm.org/replication/hour/) will result in unexpected behavior? Does `osm2pgsql-replication` need to initialize with all existing nodes on the planet in order to process updates correctly?
I'm imagining a process like this, but I'd like to know if it will result in the correct data:
* Download the standard planet PBF
* Run osmium tags filter to get just the restaurants
* Use that filtered PBF with the flex output for osm2pgsql that also filters for just restaurants
* Run `osm2pgsl-replication init`
* ...time passes
* Whenever an update is needed, run `osm2pgsql-replication update`
Thanks!
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2263
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2263 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20241005/7deb0931/attachment.htm>
More information about the Tile-serving
mailing list