[Tile-serving] [osm2pgsql-dev/osm2pgsql] prefix and osm2pgsql_properties for multiple different imports (Discussion #2280)
Jochen Topf
notifications at github.com
Tue Dec 17 13:00:29 UTC 2024
1. The prefix for the middle tables can only be set on the command line. If you don't use `--slim` you don't have them and don't need to set the prefix on the command line. There is no magic prefix any more for flex tables. If you want all tables name to have the same prefix, you can do that in your Lua script, that's what the `compatible.lua` does to make it easier to switch from the old way of doing things. Lua is very flexible in what it can do, you can read [environment variables](https://osm2pgsql.org/doc/manual.html#accessing-environment-variables-from-lua), for instance. For automated environments you can use this to set the prefix (or anything else) from outside the Lua script.
2. No, there is no better way to do this. You'll have to use different schemas or databases.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2280#discussioncomment-11593078
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2280/comments/11593078 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20241217/62abb09c/attachment.htm>
More information about the Tile-serving
mailing list