Add an option to skip table creation in flex output #1493
Replies: 3 comments 1 reply
-
osm2pgsql interacts with the database in many ways, so it has to know about the tables, what columns they have etc. so it can fill them correctly, build the right indexes, etc. In theory it might be nice to have an option to say: Please osm2pgsql get out of my hair, just fill those tables, I'll do the rest. But in practice this means you would need to know a lot about how osm2pgsql interacts with the database, set up everything just so it is exactly right. And there are many subtle ways how this could fail and osm2pgsql couldn't even tell you what the problem is. There are only very few users who are actually at that level, so this isn't something that would actually help that many users and it would probably generate a lot of questions and support effort on the part of the maintainers. |
Beta Was this translation helpful? Give feedback.
-
As an important addition, table partitioning can't be set up before first import either. In reality osm2pgsql already has a similar flag (which is |
Beta Was this translation helpful? Give feedback.
-
Database tables may have generated columns, triggers, rules, constraints etc., that currently can't be created in lua scripts.
An option to use existing table instead of recreating it opens up a lot of SQL possibilities.
This option doesn't seem like a lot of additional code.
Beta Was this translation helpful? Give feedback.
All reactions