Skip to content

prefix and osm2pgsql_properties for multiple different imports #2280

Answered by joto
danielengels asked this question in Q&A
Discussion options

You must be logged in to vote
  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, 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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danielengels
Comment options

Answer selected by danielengels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants